-
Notifications
You must be signed in to change notification settings - Fork 1.7k
querySelector() throws exception for -webkit-prefixed pseudo elements #22038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
querySelector() throws exception for -webkit-prefixed pseudo elements #22038
Conversation
|
EWS run on previous version of this PR (hash 27f9178)
|
|
We should add a test (WPT ideally) for this |
Is this third test case about this? https://wpt.fyi/results/css/selectors/webkit-pseudo-element.html?label=master&label=experimental&aligned&q=webkit |
|
It's a draft for a reason. 😉 |
27f9178 to
de86f5a
Compare
|
EWS run on current version of this PR (hash de86f5a) |
|
@anttijk should probably be a follow-up, but I wonder if this allows for even greater simplification as the notion of validity should now match that of CSS so presumably we can now reuse some code path that doesn't need for its own |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be a good opportunity to convert the whole functor class to a simple lambda.
https://bugs.webkit.org/show_bug.cgi?id=149160 rdar://99299129 Reviewed by Antti Koivisto. SelectorHasInvalidSelectorFunctor which is only used by querySelector() and friends treated custom pseudo-elements as invalid. This is wrong. querySelector("::placeholder") and querySelector("::-webkit-asdf") are perfectly acceptable inputs, they are just supposed to return null. Also do some minor code cleanup while in the general area. Canonical link: https://commits.webkit.org/272337@main
de86f5a to
a23b77e
Compare
|
Committed 272337@main (a23b77e): https://commits.webkit.org/272337@main Reviewed commits have been landed. Closing PR #22038 and removing active labels. |
a23b77e
de86f5a