W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Re: [selectors4] Open issues

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 19 Apr 2013 23:42:13 +0000 (UTC)
To: Zack Weinberg <zackw@panix.com>
cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <Pine.LNX.4.64.1304192340440.18848@ps20323.dreamhostps.com>
On Fri, 19 Apr 2013, Zack Weinberg wrote:
> I think what would make me personally happy, here, is: CSS relaxes #xxx 
> in a selector to accept any HASH token.  HTML adds a non-normative note 
> for authors discouraging use of id values containing ASCII characters 
> other than A-Za-z0-9_- .

On the HTML side, what people do is really up to authors. If the ID is to 
be used for JS, say, the problematic characters depend on how the string 
is quoted. If it's used in another attribute, then what matters is more 
what characters HTML allows convenient use of. If it's used in CSS, then 
it's up to CSS what is convenient.

Because there's all these different contexts, the spec just stays silent 
on the matter of what is best practice or not.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 19 April 2013 23:42:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:28 UTC