[Imps] [ANN] Father Christmas is a bit early this year…

Thomas Broyer t.broyer at gmail.com
Thu Dec 28 09:26:41 PST 2006


2006/12/28, Anne van Kesteren:
> On Thu, 28 Dec 2006 18:15:25 +0100, Thomas Broyer wrote:
> >
> > In "tag open state":
> > <http://www.whatwg.org/specs/web-apps/current-work/#tag-open>
> > """
> > Consume the next input character:
> > [...]
> > U+003F QUESTION MARK (?)
> >     Parse error. Switch to the bogus comment state.
> > """
> >
> > The question mark is consumed, so it's not part of the comment's value.
>
> You should also read "Bogus comment state"
> http://www.whatwg.org/specs/web-apps/current-work/#bogus before drawing
> any conclusions: "Emit a comment token whose data is the concatenation of
> all the characters starting from and __including__ the character that
> caused the state machine to switch into the bogus comment state [...]"

Doh!

Why the hell isn't this phrased as in every other state/step?!
E.g.
"""
U+003F QUESTION MARK (?)
   Parse error. Reconsume the current character in the bogus comment state.
"""

> ;-)

Thanks for pointing this at me, I'll fix my code accordingly.

-- 
Thomas Broyer



More information about the Implementors mailing list