Re: [csswg-drafts] What should `pseudo(type)` return for elements that can't have pseudo elements? (#12159)

> Inconsistent API Signature: Element.pseudo() would return null for two different reasons (invalid pseudo selector string or valid selector on an incompatible element), making error handling more complex.

I don't mind this "Con." If an author is looking to check for validity of a selector from script, I would point them to `CSS.supports()` instead.

-- 
GitHub Notification of comment by kbabbitt
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12159#issuecomment-3002134652 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 24 June 2025 23:19:02 UTC