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>
Hi,
   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
http://lachy.id.au/
Received on Tuesday, 31 January 2006 00:17:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:25 UTC