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 bba9c8f commit 9c0d26bCopy full SHA for 9c0d26b
src/browser/dom/element.zig
@@ -510,6 +510,10 @@ pub const Element = struct {
510
}
511
512
pub fn _remove(self: *parser.Element) !void {
513
+ // TODO: This hasn't been tested to make sure all references to this
514
+ // node are properly updated. A lot of libdom is lazy and will look
515
+ // for related elements JIT by walking the tree, but there could be
516
+ // cases in libdom or the Zig WebAPI where this reference is kept
517
const as_node: *parser.Node = @ptrCast(self);
518
const parent = try parser.nodeParentNode(as_node) orelse return;
519
_ = try Node._removeChild(parent, as_node);
0 commit comments