W3C home > Mailing lists > Public > www-validator@w3.org > April 2003

Re: [x]html head parsing bug in validator

From: Gabor Hojtsy <gabor@hojtsy.hu>
Date: Sat, 26 Apr 2003 18:36:25 +0200
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: www-validator@w3.org
Message-id: <200304261836.25568.gabor@hojtsy.hu>

> >First: if I try to use such constructs in the head, such as <link ... />
> > then the validator thinks I am closing the head element, which seems
> > quite buggy.
> The validator is right, the link element is closed by "/" and the ">" is
> interpreted as character data and since character data is disallowed in
> <head>, the validator closes the <head> and opens the <body> element,
> just like
>   <head>
>     <link ...>
>   </head>
>   <body>&gt;

Brrrrr, <link can be closed with / ?? What standard says, that a tag can be 
closed with / alone? I must have missed it. 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 

This also validates as HTML 4.01. None of the <img/> or <hr/> tags close the 
body, or anything...

> >Second: After my finding that <link> ending tag is forbidden, I decided to
> > try a <br /> in a body of a normal document. It works, and the validator
> > does not think I am closing the body tag (while <br> ending tags are also
> > forbidden).
> > http://validator.w3.org/check?uri=http%3A%2F%2Fgoba.hu%2Fvaltest2.html
> <br /> is interpreted as <br></br>&gt;, that's indeed legal practise.

Excuse me, but I don't understand this. / in a <link> is interpreted as the 
end of the link, while / in an <img>, <hr>, <br>, etc. is not considered end 
of the tag?

Thanks for helping me,
Received on Saturday, 26 April 2003 12:36:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:33 UTC