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

Boris Zbarsky bzbarsky at MIT.EDU
Thu Jul 25 09:04:08 PDT 2013


On 7/24/13 5:51 PM, James Greene wrote:
> While I'm not familiar with the spec for DocumentFragments, I've always
> consider them to be more equivalent to a detached element node than a
> document node.

Fwiw, Element has a getElementsByClassName and getElementsByTagName.

And SVGElement has getElementById.

-Boris



More information about the whatwg mailing list