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

Scott González scott.gonzalez at gmail.com
Fri Sep 6 05:47:56 PDT 2013

On Fri, Jun 28, 2013 at 6:51 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> On Fri, Jun 28, 2013 at 2:28 PM, Zirak A <zirak at mail.com> wrote:
> > Besides my personal aversion towards selectors being in the DOM API,
> there's
> > also the simple fact that it makes sense for document fragments to have
> these
> > methods.
> That's far from obvious, given that I don't think it makes sense to
> spread those obsolete methods around any further.

They were already spread to ShadowRoot. Does anyone have a reference to
that discussion that led to that decision? It seems like if they're being
added to ShadowRoot, which inherits from DocumentFragment, we might as well
just add them to DocumentFragment and be done with it. At least from a
non-implementor's view that seems to make sense.

More information about the whatwg mailing list