diff options
author | Luke Wilde <lukew@serenityos.org> | 2021-10-28 19:40:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-28 21:43:36 +0200 |
commit | 6088011c4bcc5fd75f5bb694ecb5388596af094c (patch) | |
tree | 04957b44b7024a55daaecb09aafc162f1b328b20 /Userland/Libraries/LibWeb | |
parent | 49916f494dde50d86b2af83bae3f5938e9b12911 (diff) | |
download | serenity-6088011c4bcc5fd75f5bb694ecb5388596af094c.zip |
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:
https://github.com/jquery/jquery/blob/16b079b164d62bd807c612806842a13bf9b04d17/jquery.js#L1644
This particular version is used by DuckDuckGo.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Element.idl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.idl b/Userland/Libraries/LibWeb/DOM/Element.idl index 21a2bfe011..fc7629c723 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.idl +++ b/Userland/Libraries/LibWeb/DOM/Element.idl @@ -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; |