mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03: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: https://github.com/SerenityOS/serenity/commit/6088011c4bc Pull-request: https://github.com/SerenityOS/serenity/pull/10671
@ -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…
Reference in New Issue
Block a user