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

Reply via email to