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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 22 Oct 2013 23:45:12 -0400
Message-ID: <52674648.3030903@mit.edu>
To: Ryosuke Niwa <rniwa@apple.com>
Cc: Glenn Maynard <glenn@zewt.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, whatwg <whatwg@lists.whatwg.org>, Tim Streater <tim@clothears.org.uk>, Ian Hickson <ian@hixie.ch>
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.

-Boris
Received on Wednesday, 23 October 2013 03:45:46 UTC

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