[whatwg] Parse error for "--" in comment end state?

Simon Pieters zcorpan at hotmail.com
Tue May 9 10:05:40 PDT 2006


Hi,

From: Ian Hickson <ian at hixie.ch>
> > Shouldn't the Anything else entry in Comment end state[1] be a parse 
>error? As
> > written, the following is allowed:
> >
> >   <!-- -- -->
> >
> > I thought it shouldn't for compability with the "SGML comments"
> > implementations.
> >
> > [1] http://whatwg.org/specs/web-apps/current-work/#comment1
>
>See:
>
>    http://ln.hixie.ch/?start=1137799947&count=1

Yes, I've seen that. I still think <!-- -- --> should be a parse error. That 
is, I'd like the text:

>Anything else
>    Append two U+002D HYPHEN-MINUS (-) characters and the input character
>    to the comment token's data. Switch to the comment state.

...to say:

   Anything else
       Parse error. Append two U+002D HYPHEN-MINUS (-) characters and the 
input
       character to the comment token's data. Switch to the comment state.

Regards,
Simon Pieters





More information about the whatwg mailing list