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.
- [whatwg] Proposal: Adding methods like getElementById an... Zirak A
- Re: [whatwg] Proposal: Adding methods like getEleme... Tab Atkins Jr.
- Re: [whatwg] Proposal: Adding methods like getE... Boris Zbarsky
- Re: [whatwg] Proposal: Adding methods like ... Jussi Kalliokoski
- Re: [whatwg] Proposal: Adding methods l... Octavian Damiean
- Re: [whatwg] Proposal: Adding meth... Glenn Maynard
- Re: [whatwg] Proposal: Adding ... Jussi Kalliokoski
- Re: [whatwg] Proposal: Adding methods l... Alexandre Morgaut
- Re: [whatwg] Proposal: Adding meth... Jonas Sicking
- Re: [whatwg] Proposal: Adding methods like ... Boris Zbarsky
- Re: [whatwg] Proposal: Adding methods l... Glenn Maynard