Re: Intent to ship: CSS.escape

2014-03-21 Thread Simon Pieters
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

Re: Intent to ship: CSS.escape

2014-03-21 Thread Boris Zbarsky
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

Re: Intent to ship: CSS.escape

2014-03-20 Thread Anne van Kesteren
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

Intent to ship: CSS.escape

2014-03-20 Thread Boris Zbarsky
CSS.escape is an API defined at 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)) Unless there are objecti