[whatwg] Proposal: Adding methods like getElementById and getElementsByTagName to DocumentFragments
Boris Zbarsky
bzbarsky at MIT.EDU
Thu Oct 31 14:19:25 PDT 2013
On 10/31/13 7:42 AM, Anne van Kesteren wrote:
> http://dom.spec.whatwg.org/#parentnode
Thank you.
By the way, I noticed another behavior difference between getElementById
and querySelector while implementing this. Consider this testcase:
data:text/html,<script id="FOO">alert(document.querySelector("%23foo") +
" | " + document.getElementById("foo"))</script>
Yes, quirks mode, yadda yadda... ;)
-Boris
More information about the whatwg
mailing list