Skip to content

Is there any performance difference between #?#:-abp-has() and #?#:has() on browsers that support the has selector? #21166

Answered by gorhill
partingscientist asked this question in Q&A
Discussion options

You must be logged in to vote

#?#:-abp-has() is equivalent to ##:has(). #?#:has() will force the filter to be procedural, this is to ensure there is a fallback syntax should the result be unexpected when using the native form. Never mind, #?#:has() is also compiled to native if supported by the browser.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@krystian3w
Comment options

@partingscientist
Comment options

@krystian3w
Comment options

@gorhill
Comment options

Answer selected by partingscientist
@partingscientist
Comment options

@krystian3w
Comment options

@gorhill
Comment options

@krystian3w
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants