W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

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

From: Simon Pieters <zcorpan@hotmail.com>
Date: Tue, 09 May 2006 17:05:40 +0000
Message-ID: <BAY109-F1DEC68CED45531BC85C2CB4A90@phx.gbl>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC