mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-27 23:15:38 -04:00
Update src/browser/webapi/element/DOMStringMap.zig
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
1 parent
fba0390b92
commit
13b253f1f8
1 file changed
+1
-1
@@ -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