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

Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
Francis Bouvier
2026-07-14 14:38:37 +02:00
committed by GitHub
parent fba0390b92
commit 13b253f1f8

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);
}