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

Boris Zbarsky bzbarsky at MIT.EDU
Thu Jul 25 09:05:41 PDT 2013

On 7/24/13 10:42 PM, Jussi Kalliokoski wrote:
> Argh, I had forgotten about live NodeLists. OK, this is a reason that
> resonates with me and justifies calling these methods obsolete. Too bad
> these methods are so badly flawed

Fwiw, I think the performance impact of live NodeLists is ... unclear. 
Their existence does mean that you have to deal with DOM mutations 
changing the lists, but them being live also means you can make the list 
getters much faster in cases when the caller doesn't actually want the 
entire list.


More information about the whatwg mailing list