Skip to content

Commit 923491a

Browse files
committed
make ref_node of nodeInsertBefore nullable
1 parent 255b45d commit 923491a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/netsurf.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ pub fn nodeHasChildNodes(node: *Node) bool {
13631363
return res;
13641364
}
13651365

1366-
pub fn nodeInsertBefore(node: *Node, new_node: *Node, ref_node: *Node) !*Node {
1366+
pub fn nodeInsertBefore(node: *Node, new_node: *Node, ref_node: ?*Node) !*Node {
13671367
var res: ?*Node = null;
13681368
const err = nodeVtable(node).dom_node_insert_before.?(node, new_node, ref_node, &res);
13691369
try DOMErr(err);

0 commit comments

Comments
 (0)