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

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

From: Zirak A <zirak@mail.com>
Date: Fri, 28 Jun 2013 16:19:46 -0400
Message-ID: <20130628201946.26920@gmx.com>
To: whatwg@lists.whatwg.org
Currently, a DocumentFragment only inherits from Node, and thus loses methods like getElementById. However, the Selector API (http://www.w3.org/TR/selectors-api/) defines querySelector and querySelectorAll on document fragments.
My proposal is to add getElementById (which makes sense, as the document fragment is a root node), getElementsByTagName (and its namespace-sensitive version), getElementsByClassName and getElementsByName - in short, all of the general selection methods available on the Document.
Received on Friday, 28 June 2013 20:20:15 UTC

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