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

Boris Zbarsky bzbarsky at MIT.EDU
Fri Sep 6 07:42:47 PDT 2013


On 9/6/13 8:20 AM, Simon Pieters wrote:
> So the use case is getting an element by id with an "untrusted" id as
> input, in an element or document fragment as opposed to the document?

Or getting elements by tag name in a document fragment, for that matter 
(though "weird" chars in tag names are harder to produce; largely 
limited to leading digits).

-Boris




More information about the whatwg mailing list