[Bug 1844] Parser 'forgets' HEAD start tag when encounting self-teminating empty child element

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1844


bjoern@hoehrmann.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From bjoern@hoehrmann.de  2005-08-12 11:42 -------
Yes, the end tag for <head> is optional in HTML, so parsers automatically close 
the element when they encounter content that is not allowed in <head>. And text 
is not allowed in <head>, in <link/> the / closes the <link> start tag and the 
> is processed as text content. Which is not allowed in <head>. The "self-
closing" tags in XHTML are not compatible with HTML. You don't get errors for 
e.g. <p><br/></p> because that's equivalent to <p><br>></p> which is allowed.

Received on Friday, 12 August 2005 11:42:34 UTC