mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
LibWeb: Add Element.webkitMatchesSelector
This is an alias of Element.matches for web compatibility.
https://dom.spec.whatwg.org/#dom-element-webkitmatchesselector
Used by particularly old versions of Sizzle, such as 1.10.2:
16b079b164/jquery.js (L1644)
This particular version is used by DuckDuckGo.
This commit is contained in:
parent
49916f494d
commit
6088011c4b
Notes:
sideshowbarker
2024-07-18 05:01:22 +09:00
Author: https://github.com/Lubrsi
Commit: 6088011c4b
Pull-request: https://github.com/SerenityOS/serenity/pull/10671
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ interface Element : Node {
|
|||
|
||||
boolean matches(DOMString selectors);
|
||||
|
||||
// legacy alias of .matches
|
||||
[ImplementedAs=matches] boolean webkitMatchesSelector(DOMString selectors);
|
||||
|
||||
readonly attribute Element? nextElementSibling;
|
||||
readonly attribute Element? previousElementSibling;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue