Discussion: js write a <hr>
Afficher un message
Vieux 11/09/2007, 18h10   #12
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:
>
>>> 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.

>
> Now that is odd. I've had this error pop up time and again when I've
> forgotten to escape closing slashes, but adding in the escape has always
> fixed the problem. :s
>
>> Here, with your idea: http://blinkynet.net/humor/index2.html

>
> Out of interest, does the same error appear when you substitute the
><hr/> element with another empty element such as <img/>?


Yes. In one incarnation of that same part of the page, I was trying to
use a <br> in that document.write, and I got the same error(s).


--
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,05529 seconds with 9 queries