[whatwg] text/html conformance checkers and comments

On Tue, 26 Jul 2005, Lachlan Hunt wrote:
>
> But you missed two other valid variants that I can think of:
> 
> <!>

Empty bogus comment "", parse error.


> <!-- -- >

Unterminated comment " -- >". Two parse errors.


> As useless as the first one may be, it seems to be supported with no 
> ill-effect by Deer Park Alpha 2, Opera 8 and IE6, so I see no reason to 
> call it invalid.

I don't really see any reason to call it valid either. :-)


> And these invalid variants:
> <! -- -->

Bogus comment " -- --". Parse error.


> <!-- foo -- bar -->

Comment " foo -- bar ". Parse error.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 24 February 2006 16:43:05 UTC