[whatwg] Comment Syntax and Parsing

Henri Sivonen hsivonen at iki.fi
Mon Jan 23 00:50:32 PST 2006


On Jan 23, 2006, at 10:38, Henri Sivonen wrote:

> I think allowing paired double hyphens with whitespace in between  
> and allowing whitespace between the ending "--" and ">" would make  
> sense. This would improve the source-level upgradeability of valid  
> HTML 4 to conforming HTML 5. However, it would have the old  
> confusion issues.
>
> <!-- I think this should be conforming. -->
> <!-- Making --   -- this conforming would make sense as well. --   >
> <!-- IMO, this -- should not be conforming but should parse  
> unambiguously with an easy parse error. -->

And then it would be necessary to make this one non-conforming:
<!-- In comment --  -- > Not in HTML 5 comment but in SGML comment -->

I guess the XML style is the simplest thing that could work. :-/

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/





More information about the whatwg mailing list