W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] Parsing: Attributes in End Tags

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 31 Jan 2006 19:17:17 +1100
Message-ID: <43DF1D0D.8030009@lachy.id.au>
   When tokenising an end tag, the tokeniser switches to the Tag Name 
state (just like with a start tag).  However, as a result, this now 
becomes syntactically valid:

</p foo="bar">

There should be an easy parse error upon encountering the first 
non-whitespace character (except for '>') after the tag name, but which 
then continues to parse the attributes instead of just searching for the 
first occurrence of '>' because of the way browsers handle </p foo=">">

Lachlan Hunt
Received on Tuesday, 31 January 2006 00:17:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:44 UTC