Skip to content

Lightpanda: the headless browser designed for AI and automation

`Element`: alias `matches` with `webkitMatchesSelector`

Halil Durak4b70b9523aaa
diff --git a/src/browser/webapi/Element.zig b/src/browser/webapi/Element.zig
index bfa74e041..497ea81c4 100644
--- a/src/browser/webapi/Element.zig
+++ b/src/browser/webapi/Element.zig
@@ -2416,6 +2416,7 @@ pub const JsApi = struct {
pub const previousElementSibling = bridge.accessor(Element.previousElementSibling, null, .{});
pub const childElementCount = bridge.accessor(Element.getChildElementCount, null, .{});
pub const matches = bridge.function(Element.matches, .{});
+ pub const webkitMatchesSelector = bridge.function(Element.matches, .{});
pub const querySelector = bridge.function(Element.querySelector, .{});
pub const querySelectorAll = bridge.function(Element.querySelectorAll, .{});
pub const closest = bridge.function(Element.closest, .{});