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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 07 Apr 2009 00:56:23 +0200
To: "Michael A. Puls II" <shadow2531@gmail.com>, public-html@w3.org
Message-ID: <op.urzlz9pr64w2qv@annevk-t60.oslo.opera.com>
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
Received on Monday, 6 April 2009 22:57:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:33 GMT