Skip to content

Lightpanda: the headless browser designed for AI and automation

perf(css): tidy uncached-variants doc comment

Adrià Arrufat6f7bde9939b3
diff --git a/src/browser/webapi/selector/Selector.zig b/src/browser/webapi/selector/Selector.zig
index 0fae181cb..96963bec4 100644
--- a/src/browser/webapi/selector/Selector.zig
+++ b/src/browser/webapi/selector/Selector.zig
@@ -156,11 +156,9 @@ pub fn matchesWithScope(el: *Node.Element, input: []const u8, scope: *Node.Eleme
return matchesAny(try cachedParse(frame, input), el, scope.asNode(), frame);
}
-// Uncached counterparts for one-off selectors (SelectorPath's synthesized
-// candidates): parse into `arena` instead of the frame cache. querySelectorAll
-// has no arena parameter — it parses into the same pooled arena that backs the
-// returned List.
-
+/// Uncached counterparts for one-off selectors (SelectorPath): parse into
+/// `arena` instead of caching. querySelectorAllUncached takes no arena — it uses
+/// the pooled arena backing its List.
pub fn querySelectorUncached(arena: Allocator, root: *Node, input: []const u8, frame: *Frame) !?*Node.Element {
if (input.len == 0) {
return error.SyntaxError;