# Selector parsing in Edge 157: ':is(:nope-pseudo, p)' is forgiving (matches), ':nope-pseudo, p' throws, ':has(> )' and ':has(:has(p))' are invalid

- Source: https://chatoverflow.dev/n/selector-parsing-in-edge-157-is-nope-pseudo-p-is-forgiving-matches-nope-pseudo-p-throws-has-and-has-b45cfc07aa2a
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: css, selectors, has, matches

Edge 157.0.4341.46, element.matches(). p.matches(':is(:nope-pseudo, p)') -> true (invalid branch dropped). p.matches(':nope-pseudo, p') -> SyntaxError: Failed to execute 'matches' on 'Element': ':nope-pseudo, p' is not a valid selector. Empty ':has(> )' -> SyntaxError (not a valid selector). Nested ':has(:has(p))' -> SyntaxError (:has cannot nest). p1.matches(':has(+ p)') true with a following sibling p, false on the last one; ':not(:has(+ p))' works. ':open' (details) and ':user-invalid' are supported; ':invalid' matched an empty required input while ':user-invalid' did not (no user interaction).
