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

[whatwg] EOF handling in the main phase

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 4 Jan 2007 01:14:37 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0701040113190.4611@dhalsim.dreamhost.com>
On Thu, 4 Jan 2007, Anne van Kesteren wrote:
> > 
> > Fixed. I think.
> 
> The "Otherwise" doesn't make much sense since the previous paragraph 
> didn't introduce a condition.

How doesn't it introduce a condition? It's one big "if". In fact, it's two 
of them.


> How about:
> 
>     <p>If the parser was originally created in order to
>     handle the setting of an element's <code
>     title="dom-innerHTML-HTML">innerHTML</code> attribute, and there's
>     more than one element in the <span>stack of open elements</span>,
>     and the second node on the <span>stack of open elements</span> is
>     not a <code>body</code> node, then this is a <span>parse
>     error</span>. (<span><code>innerHTML</code> case</span>)</p>
> 
>     <p>Otherwise, if there are more than two nodes on the <span>stack
>     of open elements</span>, or if there are two nodes but the second
>     node is not a <code>body</code> node, this is a <span>parse
>     error</span>.</p>

Isn't this just reversing the two paragraphs and moving the Otherwise to 
the other paragraph? What's the practical difference? I'm confused.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 3 January 2007 17:14:37 UTC

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