[whatwg] Proposal: Adding methods like getElementById and getElementsByTagName to DocumentFragments

Tab Atkins Jr. jackalmage at gmail.com
Fri Sep 6 11:54:11 PDT 2013


On Fri, Sep 6, 2013 at 4:22 AM, Anne van Kesteren <annevk at annevk.nl> wrote:
> On Fri, Sep 6, 2013 at 2:50 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
>> In that case I think we need to add a function to the platform that
>> CSS-escapes a string.
>
> Maybe a thing for window.CSS? Simon?

Yeah, exposing window.CSS.escapeIdent(DOMString) would make sense.  As
noted, this is useful for ids, for tag names, and maybe even things
like attribute names and values.

~TJ



More information about the whatwg mailing list