On Thu, 20 Mar 2014 17:11:01 +0100, Anne van Kesteren
wrote:
On Thu, Mar 20, 2014 at 3:17 PM, Boris Zbarsky wrote:
http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method which allows
web
pages to create a valid CSS identifier that will parse to a given
string. A
typical use case is
On 3/20/14 12:11 PM, Anne van Kesteren wrote:
Seems fine, specification should probably clarify surrogate handling.
I would expect a paired surrogate in JavaScript to end up as a single
escape.
Non-ASCII stuff is OK in CSS idents, so it doesn't need escaping at all:
it's just left as-is.
-Bo
On Thu, Mar 20, 2014 at 3:17 PM, Boris Zbarsky wrote:
> http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method which allows web
> pages to create a valid CSS identifier that will parse to a given string. A
> typical use case is:
>
> document.querySelector('#' + CSS.escape(stringIDontControl
3 matches
Mail list logo