range: add detach function

This commit is contained in:
Pierre Tachoire
2025-07-02 10:49:20 -07:00
committed by Sjors
parent 947d01a3c0
commit a2565a7c83

View File

@@ -126,6 +126,12 @@ pub const Range = struct {
self.proto.updateCollapsed(); self.proto.updateCollapsed();
} }
// The Range.detach() method does nothing. It used to disable the Range
// object and enable the browser to release associated resources. The
// method has been kept for compatibility.
// https://developer.mozilla.org/en-US/docs/Web/API/Range/detach
pub fn _detach(_: *Range) void {}
}; };
const testing = @import("../../testing.zig"); const testing = @import("../../testing.zig");