api.jquery.com icon indicating copy to clipboard operation
api.jquery.com copied to clipboard

:contains()'s page should have the "… is a jQuery extension" note

Open biziclop opened this issue 2 years ago • 0 comments

… like :has() has:

Because :has() is a jQuery extension and not part of the CSS specification, queries using :has() cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. For better performance in modern browsers, use $( "your-pure-css-selector" ).has( selector/DOMElement ) instead.

https://api.jquery.com/contains-selector/

I attempted a pull request here:

https://github.com/jquery/api.jquery.com/pull/1211

biziclop avatar Nov 03 '22 22:11 biziclop