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

Simon Pieters simonp at opera.com
Wed Oct 23 01:39:00 PDT 2013

On Wed, 23 Oct 2013 05:45:12 +0200, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 10/22/13 2:42 PM, Ryosuke Niwa wrote:
>> Because of HTMLCollection's name getter, all major browsers must be  
>> capable of a id+name lookup at every element (since Element has  
>> getElementsByTagName that returns a HTMLCollection).
> While true, in practice pretty much no one uses the name getter on that  
> object, so nothing right now forces browsers to implement it in a  
> particularly efficient (as opposed to simple) way.

Or maybe we could remove the name lookup thing altogether for  
Element.getElementsByTagName et al?

Simon Pieters
Opera Software

More information about the whatwg mailing list