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

[x]html head parsing bug in validator

From: Gabor Hojtsy <gabor@hojtsy.hu>
Date: Sat, 26 Apr 2003 18:08:14 +0200
To: www-validator@w3.org
Message-id: <200304261808.14552.gabor@hojtsy.hu>

Hi!

I have prepared two test documents to present, what I think is a bug in the 
online HTML validator. Let's say we have a HTML 4.01 document, but would like 
to be close to XHTML and use <img ... /> <br /> and the like. This is the 
case in my two examples.

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. 
Following on this, I have checked the HTML 4.01 spec and truly it says, that 
<link> ending tags are forbidden. But anyway, the validator should not think 
that the <head> is closed...
http://validator.w3.org/check?uri=http%3A%2F%2Fgoba.hu%2Fvaltest.html

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

So after all it seems the validator does not seem to be too strict about 
closing tags which should not be closed, but it has a bug in the <head> 
parsing.

Please include my as a recepient in any responses, I am not on the list. And 
please fix in case it is a bug in the validator :)

Have a nice weekend,
Gabor Hojtsy
Received on Saturday, 26 April 2003 12:13:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:08 GMT