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

Ian Hickson ian at hixie.ch
Wed May 10 03:48:52 PDT 2006


On Tue, 9 May 2006, Simon Pieters wrote:
> > >
> > >   <!-- -- -->
> 
> Yes, I've seen that. I still think <!-- -- --> should be a parse error. 

My bad, I misunderstood.

> 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.

Yeah, I agree. <!-- ---> is already a parse error, <!-- -- --> should be 
too. I'll fix that shortly. That it isn't is an oversight.

-- 
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