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

[whatwg] Comment Syntax and Parsing

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Mon, 23 Jan 2006 10:39:28 +0100
Message-ID: <20060123103928.emwla6ka7ls00woc@webmail.annevankesteren.nl>
Quoting Henri Sivonen <hsivonen at iki.fi>:
>> 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. :-/

You are talking about conformance, but what do you want the parser to do? And
also there is talk about whitespace between -- and > but currently all 
kinds of
chracters are allowed there (including - for instance).


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
Received on Monday, 23 January 2006 01:39:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:44 UTC