diff --git a/src/browser/Page.zig b/src/browser/Page.zig index bb0c0b1d..913014cd 100644 --- a/src/browser/Page.zig +++ b/src/browser/Page.zig @@ -1367,7 +1367,7 @@ pub fn createElementNS(self: *Page, namespace: Element.Namespace, name: []const Element.Html.Quote, namespace, attribute_iterator, - .{ ._proto = undefined, ._tag_name = String.init(undefined, "q", .{}) catch unreachable, ._tag = .unknown }, + .{ ._proto = undefined, ._tag_name = String.init(undefined, "q", .{}) catch unreachable, ._tag = .quote }, ), 's' => return self.createHtmlElementT( Element.Html.Generic, @@ -1523,7 +1523,7 @@ pub fn createElementNS(self: *Page, namespace: Element.Namespace, name: []const Element.Html.TableCol, namespace, attribute_iterator, - .{ ._proto = undefined, ._tag_name = String.init(undefined, "col", .{}) catch unreachable, ._tag = .unknown }, + .{ ._proto = undefined, ._tag_name = String.init(undefined, "col", .{}) catch unreachable, ._tag = .col }, ), asUint("dir") => return self.createHtmlElementT( Element.Html.Directory, @@ -1926,7 +1926,7 @@ pub fn createElementNS(self: *Page, namespace: Element.Namespace, name: []const Element.Html.TableCol, namespace, attribute_iterator, - .{ ._proto = undefined, ._tag_name = String.init(undefined, "colgroup", .{}) catch unreachable, ._tag = .unknown }, + .{ ._proto = undefined, ._tag_name = String.init(undefined, "colgroup", .{}) catch unreachable, ._tag = .colgroup }, ), asUint("fieldset") => return self.createHtmlElementT( Element.Html.FieldSet, @@ -1952,6 +1952,12 @@ pub fn createElementNS(self: *Page, namespace: Element.Namespace, name: []const attribute_iterator, .{ ._proto = undefined }, ), + asUint("noscript") => return self.createHtmlElementT( + Element.Html.Generic, + namespace, + attribute_iterator, + .{ ._proto = undefined, ._tag_name = String.init(undefined, "noscript", .{}) catch unreachable, ._tag = .noscript }, + ), else => {}, }, 10 => switch (@as(u80, @bitCast(name[0..10].*))) { diff --git a/src/browser/webapi/Element.zig b/src/browser/webapi/Element.zig index 828f726b..8bdf1a88 100644 --- a/src/browser/webapi/Element.zig +++ b/src/browser/webapi/Element.zig @@ -1219,6 +1219,8 @@ pub const Tag = enum { caption, circle, code, + col, + colgroup, custom, data, datalist, @@ -1265,20 +1267,26 @@ pub const Tag = enum { meta, meter, nav, + noscript, + object, ol, optgroup, option, + output, p, path, + param, polygon, polyline, progress, + quote, rect, s, script, section, select, slot, + source, span, strong, style, @@ -1298,6 +1306,7 @@ pub const Tag = enum { thead, title, tr, + track, ul, video, unknown,