We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c82942 + d6640f4 commit d4fc6f1Copy full SHA for d4fc6f1
src/browser/dom/document.zig
@@ -66,8 +66,10 @@ pub const Document = struct {
66
return DOMImplementation{};
67
}
68
69
- pub fn get_documentElement(self: *parser.Document) !?*parser.Element {
70
- return try parser.documentGetDocumentElement(self);
+ pub fn get_documentElement(self: *parser.Document) !?ElementUnion {
+ const e = try parser.documentGetDocumentElement(self);
71
+ if (e == null) return null;
72
+ return try Element.toInterface(e.?);
73
74
75
pub fn get_documentURI(self: *parser.Document) ![]const u8 {
0 commit comments