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

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

From: Scott González <scott.gonzalez@gmail.com>
Date: Fri, 6 Sep 2013 08:43:14 -0400
Message-ID: <CAO8i3ifim0vvaA_vG_FfjkkirWHUYB--MHrXidr54exFvd-FtA@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: WHATWG <whatwg@lists.whatwg.org>, Boris Zbarsky <bzbarsky@mit.edu>
On Fri, Sep 6, 2013 at 8:40 AM, Simon Pieters <simonp@opera.com> wrote:

> On Fri, 06 Sep 2013 14:21:24 +0200, Scott González <
> scott.gonzalez@gmail.com> wrote:
>
>> Yes. Take the example of finding the input associated with a label:
>>
>> <label for="foo">foo</label>
>> <input id="foo">
>>
>> If you have a reference to the label and you want to find the input, you
>> need to escape the value of the for attribute before querying.
>>
>
> In this example, are the elements in the document?


For jQuery, the answer tends to be "it doesn't matter." There are very few
places where we treat in-document and out-of-document situations
differently.
Received on Friday, 6 September 2013 12:43:38 UTC

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