W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2014

Behavior of matches() and closest() with :scope()

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 1 Sep 2014 18:48:15 +0200
Message-ID: <CADnb78h-zzcVUFnNiiRBsrrYXDqpChg3+_OY_GDmijU7B3qBMw@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>, "www-dom@w3.org" <www-dom@w3.org>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, "Tab Atkins Jr." <jackalmage@gmail.com>, David Håsäther <hasather@gmail.com>
In https://bugzilla.mozilla.org/show_bug.cgi?id=886308#c29 bz points
out that I introduced a regression relative to the old definition of
matches() with the new hook in Selectors.

I guess the way to fix this for matches() would be to add a :scope
elements argument. What about closest(), should it have that argument

I'm not too familiar admittedly with what would be desirable here.

Received on Monday, 1 September 2014 16:48:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:05 UTC