W3C home > Mailing lists > Public > public-html@w3.org > April 2009

Re: document[id] and document.id to <element id="id"> matching

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Mon, 06 Apr 2009 18:58:50 -0400
To: "Anne van Kesteren" <annevk@opera.com>, public-html@w3.org
Message-ID: <op.urzl4cja1ejg13@sandra-svwliu01>
On Mon, 06 Apr 2009 18:56:23 -0400, Anne van Kesteren <annevk@opera.com> wrote:

> On Tue, 07 Apr 2009 00:52:15 +0200, Michael A. Puls II  
> <shadow2531@gmail.com> wrote:
>> O.K., so it's saying that with:
>>
>> <iframe name="a">
>> <img name="a">
>>
>> , there's only a single match and that single match is an iframe so  
>> return its global object
>
> That's probably because you did not close the <iframe> element and  
> therefore <img name="x"> gets effectively treated as a text node  
> descendant. If you did close the <iframe> there would be two matches.

lol right on. Oops. I see. Thanks. Gotcha. :)

-- 
Michael
Received on Monday, 6 April 2009 22:59:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:02 UTC