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:
Luke Wilde 2021-10-28 19:40:14 +01:00 committed by Andreas Kling
parent 49916f494d
commit 6088011c4b
Notes: sideshowbarker 2024-07-18 05:01:22 +09:00

View File

@ -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;