Re: [whatwg/dom] Element.matches and pseudo-elements (#185)

cdoublev left a comment (whatwg/dom#185)

I am confused.

My understanding is that you are referring to the [rewrite](https://github.com/w3c/csswg-drafts/commit/7dc262a4832f3285a9280618ea7f669392299ce6) of [match a selector against a tree](https://drafts.csswg.org/selectors-4/#match-a-selector-against-a-tree). The new version, which is still the same version today, do talk about pseudo-elements:

  > 2. For each possible pseudo-element associated with `element` that is one of the pseudo-elements allowed to show up in the match list, if the result of match a selector against a pseudo-element for the pseudo-element and selector is success, add the pseudo-element to the selector match list.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/185#issuecomment-5024784919
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/185/5024784919@github.com>

Received on Monday, 20 July 2026 16:49:47 UTC