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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 28 Jun 2013 22:04:16 -0400
Message-ID: <51CE40A0.2090403@mit.edu>
To: whatwg@lists.whatwg.org
On 6/28/13 8:32 PM, Zirak A wrote:
> The point here is that document fragments are documents

Actually, no.  They are not.  getElementById on a document fragment, for 
example, would almost certainly be slower than on a document (which 
typically has a hashtable mapping ids to lists of elements).

-Boris
Received on Saturday, 29 June 2013 02:04:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:22 UTC