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

Anne van Kesteren <[email protected]>
Newsgroups gmane.comp.web.dom.general,gmane.comp.web.css.general
Message-ID <CADnb78h-zzcVUFnNiiRBsrrYXDqpChg3+_OY_GDmijU7B3qBMw@mail.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
too?

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


-- 
http://annevankesteren.nl/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.