Skip to content

Commit 68dfb4e

Browse files
karlseguinmookums
authored andcommitted
fix custom elements when minified js is used
1 parent f1ff789 commit 68dfb4e

File tree

4 files changed

+284
-22
lines changed

4 files changed

+284
-22
lines changed

src/browser/dom/document.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub const Document = struct {
129129
pub fn _createElement(self: *parser.Document, tag_name: []const u8, page: *Page) !CreateElementResult {
130130
const custom_element = page.window.custom_elements._get(tag_name) orelse {
131131
const e = try parser.documentCreateElement(self, tag_name);
132-
return .{.element = try Element.toInterface(e)};
132+
return .{ .element = try Element.toInterface(e) };
133133
};
134134

135135
var result: Env.Function.Result = undefined;
@@ -142,7 +142,7 @@ pub const Document = struct {
142142
});
143143
return err;
144144
};
145-
return .{.custom = js_obj};
145+
return .{ .custom = js_obj };
146146
}
147147

148148
pub fn _createElementNS(self: *parser.Document, ns: []const u8, tag_name: []const u8) !ElementUnion {

0 commit comments

Comments
 (0)