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

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