mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Add prepend, append and relpaceChildren to DocumentFragment
This commit is contained in:
@@ -43,6 +43,18 @@ pub const DocumentFragment = struct {
|
|||||||
_ = self;
|
_ = self;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn _prepend(self: *parser.DocumentFragment, nodes: []const Node.NodeOrText) !void {
|
||||||
|
return Node.prepend(parser.documentFragmentToNode(self), nodes);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn _append(self: *parser.DocumentFragment, nodes: []const Node.NodeOrText) !void {
|
||||||
|
return Node.append(parser.documentFragmentToNode(self), nodes);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn _replaceChildren(self: *parser.DocumentFragment, nodes: []const Node.NodeOrText) !void {
|
||||||
|
return Node.replaceChildren(parser.documentFragmentToNode(self), nodes);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const testing = @import("../../testing.zig");
|
const testing = @import("../../testing.zig");
|
||||||
|
|||||||
Reference in New Issue
Block a user