Skip to content

Lightpanda: the headless browser designed for AI and automation

selector: inList takes its list at runtime

Adrià Arrufatd0779261048f
diff --git a/src/browser/webapi/selector/Parser.zig b/src/browser/webapi/selector/Parser.zig
index 1ccabf3d6..3d81086fe 100644
--- a/src/browser/webapi/selector/Parser.zig
+++ b/src/browser/webapi/selector/Parser.zig
@@ -340,7 +340,7 @@ fn pseudoName(input: []const u8) []const u8 {
return input[0..i];
}
-fn inList(name: []const u8, comptime list: []const []const u8) bool {
+fn inList(name: []const u8, list: []const []const u8) bool {
for (list) |entry| {
if (std.ascii.eqlIgnoreCase(name, entry)) return true;
}