W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2013

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 31 Oct 2013 17:19:25 -0400
Message-ID: <5272C95D.4000308@mit.edu>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Glenn Maynard <glenn@zewt.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Ryosuke Niwa <rniwa@apple.com>, whatwg <whatwg@lists.whatwg.org>, Tim Streater <tim@clothears.org.uk>, Ian Hickson <ian@hixie.ch>
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
Received on Thursday, 31 October 2013 21:19:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:12 UTC