[whatwg] Parsing: Attributes in End Tags
ian at hixie.ch
Tue Jan 31 12:55:28 PST 2006
On Tue, 31 Jan 2006, Lachlan Hunt wrote:
> 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=">">
Since that would be somewhat hard to define neatly, I've instead just
added a requirement at the end of the tokeniser to cover this.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg