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 25ed528 commit 587f527Copy full SHA for 587f527
src/.DS_Store
6 KB
src/browser/dom/document_fragment.zig
@@ -88,6 +88,11 @@ pub const DocumentFragment = struct {
88
const e = try parser.nodeGetElementById(@ptrCast(@alignCast(self)), id) orelse return null;
89
return try Element.toInterface(e);
90
}
91
+
92
+ pub fn get_firstElementChild(self: *parser.DocumentFragment) !?ElementUnion {
93
+ var children = try get_children(self);
94
+ return try children._item(0);
95
+ }
96
};
97
98
const testing = @import("../../testing.zig");
0 commit comments