Re: [x]html head parsing bug in validator

* Gabor Hojtsy wrote:
>Brrrrr, <link can be closed with / ?? What standard says, that a tag can be 
>closed with / alone? I must have missed it.

http://www.w3.org/TR/html4/appendix/notes#h-B.3.7

>So then what if I have a normal 
>validating head, and this as the <body>:
><body><img src="http://www.w3.org/Icons/valid-xhtml10" alt="xhtml"/><hr 
>/></body>
>
>This also validates as HTML 4.01. None of the <img/> or <hr/> tags close the 
>body, or anything...

Again, the / closes the element and the following > is interpreted as
character data. Take a look at
http://validator.w3.org/check?uri=http%3A%2F%2Fgoba.hu%2Fvaltest2.html&verbose=1&sp=1

Received on Saturday, 26 April 2003 13:09:51 UTC