W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2011

[Bug 14685] Missing < in body start tag not detected

From: <bugzilla@jessica.w3.org>
Date: Mon, 07 Nov 2011 08:44:39 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1RNKop-000659-V7@jessica.w3.org>

Michael[tm] Smith <mike@w3.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |mike@w3.org
         Resolution|                            |WONTFIX

--- Comment #1 from Michael[tm] Smith <mike@w3.org> 2011-11-07 08:44:39 UTC ---
It doesn't report it because it's not an error. The validator conforms to the
HTML spec here.

The spec says that the body start tag is optional in document instances. If
it's omitted, parsers behave as if it had been seen anyway. So basically every
document ends up having a body start tag in the DOM,  and so the body end tag
in your example is not a "stray" end tag, but instead an end tag for a body
start that the parser has already added to the DOM.

And the parser used by the validator follows the HTML parsing algorithm and
does not have any special states for attempting to recognize mistyped start
tags. For all it knows, you did actually mean to intentionally type "body>

And trying to have the validator check the parser output to see if there are
cases of potentially mistyped start tags is not something we're planning to do.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 7 November 2011 08:44:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:52 UTC