add dom_exception flag to Element.replaceChildren

This commit is contained in:
egrs
2026-02-20 08:22:29 +01:00
parent bdb059b6c9
commit 1140149e1e

View File

@@ -1594,7 +1594,7 @@ pub const JsApi = struct {
fn _attachShadow(self: *Element, init: ShadowRootInit, page: *Page) !*ShadowRoot {
return self.attachShadow(init.mode, page);
}
pub const replaceChildren = bridge.function(Element.replaceChildren, .{});
pub const replaceChildren = bridge.function(Element.replaceChildren, .{ .dom_exception = true });
pub const replaceWith = bridge.function(Element.replaceWith, .{ .dom_exception = true });
pub const remove = bridge.function(Element.remove, .{});
pub const append = bridge.function(Element.append, .{ .dom_exception = true });