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

On 6/28/13 10:01 PM, Boris Zbarsky wrote:
> On 6/28/13 5:06 PM, Tab Atkins Jr. wrote:
>> getElementById("foo") is just querySelector("#foo")
>
> This is actually false.  For example, getElementById("foo:bar") is just
> querySelector("#foo\\:bar"), which is ... nonobvious.

And today someone asked me how to do the equivalent of 
getElementById("\n") with querySelector.  That one is even more non-obvious.

-Boris

Received on Thursday, 10 October 2013 00:02:45 UTC