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

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

From: Simon Pieters <simonp@opera.com>
Date: Sat, 07 Sep 2013 19:40:08 +0200
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Message-ID: <op.w21x0617idj3kv@simons-macbook-pro.local>
Cc: WHATWG <whatwg@lists.whatwg.org>
On Fri, 06 Sep 2013 16:42:47 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> 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).

Leading digits in tag names is not possible. Valid tag names in  
HTML/SVG/MathML all use non-weird chars.

Simon Pieters
Opera Software
Received on Saturday, 7 September 2013 17:33:33 UTC

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