W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: window.find already exists

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 21 Nov 2011 08:29:57 -0800
Message-ID: <CAAWBYDAmNOBkQRLF1GEHMT_=3m0ThHpwA_JEqsZE19z6-e7SNQ@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: public-webapps@w3.org
On Mon, Nov 21, 2011 at 8:28 AM, Simon Pieters <simonp@opera.com> wrote:
> There's discussion about introducing find and findAll as an alternative to
> querySelector[All]. However, window.find exists already in Firefox and
> WebKit, and is for in-page text search. There's a placeholder for it in the
> spec.
> http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dom-find
>
> Are Firefox and WebKit going to drop the old find()? Is there legacy content
> that feature detects for find() and would break if it changed semantics?

That only interferes if .find() for selectors is defined on window.
qSA is only defined on Document and Element, though, and I see no
reason that .find wouldn't be the same.

(Dropping window.find would be fine with me if we could do so, though,
so it's a good question to ask.)

~TJ
Received on Monday, 21 November 2011 16:30:58 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT