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: Thu, 04 Jan 2007 02:33:56 +0100
Message-ID: <op.tllvyujb64w2qv@id-c0020>
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
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 3 January 2007 17:33:56 UTC

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