- From: Michael A. Puls II <shadow2531@gmail.com>
- Date: Mon, 06 Apr 2009 18:52:15 -0400
- To: "Anne van Kesteren" <annevk@opera.com>, public-html@w3.org
On Mon, 06 Apr 2009 18:25:03 -0400, Anne van Kesteren <annevk@opera.com> wrote: > On Tue, 07 Apr 2009 00:17:10 +0200, Michael A. Puls II > <shadow2531@gmail.com> wrote: >> Is that what you mean? > > The order is not relevant, the amount of elements returned is. 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 and with: <img name="a"> <iframe name="a"> there are 2 matches so return a collection? If so, then I see, but can you see how order did matter from a (how many matches are there) point of view? (tested the results in browsers) > If > document[name] matches a single element that happens to be an <iframe> > then you'd return the global object the <iframe> holds. Otherwise you > just return the HTMLCollection of the matched elements. -- Michael
Received on Monday, 6 April 2009 22:52:59 UTC