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

Boris Zbarsky bzbarsky at MIT.EDU
Fri Jun 28 19:04:16 PDT 2013


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



More information about the whatwg mailing list