mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-07-31 01:36:15 -04:00
Update src/browser/webapi/element/DOMStringMap.zig
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user