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

Hi,

From: Ian Hickson <ian@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

Received on Tuesday, 9 May 2006 10:05:40 UTC