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

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