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

Boris Zbarsky bzbarsky at MIT.EDU
Wed Oct 9 17:02:19 PDT 2013

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.


More information about the whatwg mailing list