Update src/browser/webapi/element/DOMStringMap.zig

Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
Francis BouvierandKarl Seguin authored and GitHub committed 2026-07-14 14:38:37 +02:00
1 parent fba0390b92
commit 13b253f1f8
1 file changed
+1 -1
+1 -1
View File
@@ -141,7 +141,7 @@ pub const JsApi = struct {
// element's data-* attributes, in attribute order.
fn getNames(self: *DOMStringMap, exec: *const js.Execution) !js.Array {
var names: std.ArrayList([]const u8) = .empty;
for (try self._element._attributes.getNames(exec.call_arena)) |attr_name| {
for (try self._element._attributes.getNames(exec.local_arena)) |attr_name| {
const camel = (try kebabToCamel(exec.local_arena, attr_name)) orelse continue;
try names.append(exec.local_arena, camel);
}