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

Re: Elements array and query/queryAll methods

From: Dean Edwards <dean.edwards@gmail.com>
Date: Tue, 8 Apr 2014 19:51:59 +0100
Message-ID: <CAJMHKgyFXa1Y7w1gz9TF_bcV0SaFnhB2M-uhUf08Q0ggyNLYYw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Anne van Kesteren <annevk@annevk.nl>, Rick Waldron <waldron.rick@gmail.com>, Travis Leithead <travis.leithead@microsoft.com>, Eric Devine <devineej@gmail.com>, "public-html@w3.org" <public-html@w3.org>, "www-dom@w3.org" <www-dom@w3.org>
Also this:

var elems = document.queryAll("p");
elems.push(elems);
elems.queryAll("span");

Should that still work? The last entry is not an element but it
supports queryAll.
Received on Tuesday, 8 April 2014 18:52:27 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:38 UTC