Discussion: js write a <hr>
Afficher un message
Vieux 11/09/2007, 12h13   #7
Blinky the Shark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: js write a <hr>

Dylan Parry wrote:
> Blinky the Shark wrote:
>
>> document.write("<hr />" + "foo")
>>
>> But validation fails with a you-can't-use-a-<hr>-there error.

>
> Try:
>
> document.write("<hr \/>" + "foo");
>
> When using document.write() combined with XHTML, you need to escape the
> closing slashes in end tags otherwise it won't validate. It should still
> /work/ okay without it though.


Nope. As before: works but won't validate.

Here, with your idea: http://blinkynet.net/humor/index2.html

Try it.

--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
  Réponse avec citation
 
Page generated in 0,05408 seconds with 9 queries