[whatwg] EOF handling in the main phase

Ian Hickson ian at hixie.ch
Wed Jan 3 16:49:17 PST 2007


On Mon, 1 Jan 2007, Anne van Kesteren wrote:
>
> I was wondering what "If there's more than one node on the stack of open 
> elements, or, if the parser was not originally created in order to 
> handle the setting of an element's innerHTML attribute (innerHTML case) 
> and the second node on the stack of open elements is not a body node, 
> this is a parse error." exactly means. I came up with two variations:
> [...]

Fixed. I think.


> After that it says "Stop parsing." but it isn't defined how the 
> remaining tokens are to be popped of from the stack of open elements. 
> Shouldn't that be covered?

Doesn't matter how they are popped from the stack. You could just throw 
the stack away and be done. Once you stop parsing, the stack is never 
again used, and never affects the document.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list