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

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.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Monday, 6 April 2009 22:57:09 UTC