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

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

From: Simon Pieters <simonp@opera.com>
Date: Wed, 23 Oct 2013 10:39:00 +0200
To: "Ryosuke Niwa" <rniwa@apple.com>, "Boris Zbarsky" <bzbarsky@mit.edu>
Message-ID: <op.w5efnatuidj3kv@simons-macbook-pro.local>
Cc: whatwg <whatwg@lists.whatwg.org>, Tim Streater <tim@clothears.org.uk>, Glenn Maynard <glenn@zewt.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Ian Hickson <ian@hixie.ch>
On Wed, 23 Oct 2013 05:45:12 +0200, Boris Zbarsky <bzbarsky@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
Received on Wednesday, 23 October 2013 08:39:30 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:12 UTC