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

[whatwg] Consecutive hyphen-minus characters in comments/in ACE-strings of IDNs

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 07 Jan 2011 10:55:36 +0100
Message-ID: <op.voxm6xsl64w2qv@anne-van-kesterens-macbook-pro.local>
On Fri, 07 Jan 2011 02:10:26 +0100, Ian Hickson <ian at hixie.ch> wrote:
> The question, I guess, is which of the following do we think is more
> important:
>
>  * Helping authors not write HTML markup that might be hard to convert to
>    XML, and helping authors avoid nesting comments accidentally, by
>    flagging "--" sequences in comments
>
>  * Getting out of the way of authors who want to put "--" sequences in
>    comments, e.g. because they use "--" as a long dash (as I do all the
>    time!), or because they want to comment out punycoded URLs.
>
> Currently the spec assumes the former is more important. Personally, I
> think the latter is rather more useful, but then I use "--" as long
> dashes all the time! When this was last studied, the weight of argument
> was on the stricter "disallow --" side of things, presumably.
>
> I'm open to changing this back; does anyone else have an opinion on this?

I think the main concern back then was compatibility with legacy browsers.  
I would not mind easing the restriction as relatively soon all browsers  
will have HTML5 comment parsing. And given that <!-- and --> are clear  
delimiters disallowing -- does not make a whole lot of sense.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Friday, 7 January 2011 01:55:36 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC