[whatwg] EOF handling in the main phase

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