Re: [whatwg/dom] Add OpaqueRange interface (PR #1404)

@stephanieyzhang commented on this pull request.



> @@ -9981,6 +9988,61 @@ and {{Range/getBoundingClientRect()}} methods are defined in other specification
 [[CSSOM-VIEW]]
 
 
+<h3 id=interface-opaquerange>Interface {{OpaqueRange}}</h3>
+
+<pre class=idl>
+[Exposed=Window]
+interface OpaqueRange : AbstractRange {
+  DOMRectList getClientRects();
+  DOMRect getBoundingClientRect();
+};

Good idea. Added `disconnect()` to explicitly disconnect the range, stop live updates, reset offsets, and return empty geometry results.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1404#discussion_r3155566134
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1404/review/4190499679@github.com>

Received on Tuesday, 28 April 2026 16:06:38 UTC