[whatwg] EOF handling in the main phase

On Thu, 04 Jan 2007 02:27:33 +0100, Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 4 Jan 2007, Anne van Kesteren wrote:
>> On Thu, 04 Jan 2007 02:14:37 +0100, Ian Hickson <ian at hixie.ch> wrote:
>>> How doesn't it introduce a condition? It's one big "if". In fact, it's  
>>> two of them.
>> To me it's ambiguous whether this "big 'if'" also applies to the
>> "innerHTML case" or not.
> Why is it ambiguous? The first if doesn't even mention innerHTML. I don't
> really understand why it wouldn't apply.

So why mention "Otherwise" in that case? Say the stack is ("html", "y")  
and we're in innerHTML mode. The second node in the stack is not "body" so  
it's a parse error per the first paragraph. And then other parse error per  
the second paragraph. It seems to me you only want a single parse error.

Anne van Kesteren

Received on Wednesday, 3 January 2007 17:33:56 UTC