mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +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
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