Re: [x]html head parsing bug in validator

> >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&verb
>ose=1&sp=1

Well, thanks for the information. I now know that my page will hardly validate 
as HTML 4.01... It's sad that the SGML interpretation is that far from 
browser interpretation....

Thanks for the englightment,
Goba

Received on Saturday, 26 April 2003 14:06:00 UTC