[whatwg] Proposal: Adding methods like getElementById and getElementsByTagName to DocumentFragments
Scott González
scott.gonzalez at gmail.com
Fri Sep 6 05:43:14 PDT 2013
On Fri, Sep 6, 2013 at 8:40 AM, Simon Pieters <simonp at opera.com> wrote:
> On Fri, 06 Sep 2013 14:21:24 +0200, Scott González <
> scott.gonzalez at 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.
More information about the whatwg
mailing list