[whatwg] EOF handling in the main phase

Ian Hickson ian at hixie.ch
Wed Jan 3 17:35:47 PST 2007


On Thu, 4 Jan 2007, Anne van Kesteren wrote:
> 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.

Yes, we only want a single parse error. That's exactly it.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list