Skip to content

Commit a12708f

Browse files
committed
fix tag type check
1 parent 2f1f870 commit a12708f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/netsurf.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ pub fn elementHTMLGetTagType(elem_html: *ElementHTML) !Tag {
16271627
const err = elementHTMLVtable(elem_html).dom_html_element_get_tag_type.?(elem_html, &tag_type);
16281628
try DOMErr(err);
16291629

1630-
if (tag_type >= @intFromEnum(Tag.undef)) {
1630+
if (tag_type >= 255) {
16311631
// This is questionable, but std.meta.intToEnum has more overhead
16321632
// Added this because this WPT test started to fail once we
16331633
// introduced an SVGElement:

0 commit comments

Comments
 (0)