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

[whatwg] EOF handling in the main phase

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 01 Jan 2007 18:09:24 +0100
Message-ID: <op.tlhi9yd864w2qv@id-c0020>
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:

   1.  If the parsing mode is innerHTML and there's more than
       one node on the stack of open elements it's a parse
       error.
       If the parsing mode is not innerHTML and the second
       node on the stack of open element is not a body node
       it's a parse error.

   2.  Regardless of the parsing mode it's a parse error if
       there's more than one node on the stack of open
       elements.
       If the parsing mode is not innerHTML and the second
       node on the stack of open element is not a body node
       it's a parse error.

Neither sounds very logical.

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?


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Monday, 1 January 2007 09:09:24 UTC

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