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.
1 parent ce08cc9 commit d6640f4Copy full SHA for d6640f4
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