You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
filter() and is() match nothing for a positional pseudo-class left of a combinator (ul:first > li) #132
filter() and is() match nothing when a positional pseudo-class (:first, :eq(), …) sits on a compound to the left of a combinator. find() handles the same selector:
In initialized mode (the candidates are tested as themselves), DOMTraverser resolves a non-subject compound that carries a positional pseudo-class by searching the candidates' descendants instead of the document. Found during #128 (DOMTraverser::filterNodes()), which preserves the existing behaviour.
Expected
The same as jQuery's .filter(): a candidate matches if it is one of the elements find() would return for the selector from the document.
Activity