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

@stephanieyzhang commented on this pull request.



> +{{AbstractRange/endContainer}} getters return null, and its {{AbstractRange/startOffset}} and
+{{AbstractRange/endOffset}} getters return indices into that string.</p>
+
+<p>A {{PlainTextRange}} has associated state:</p>
+
+<ul>
+ <li><p><dfn export for=PlainTextRange id=plaintext-range-host>host</dfn> (null or an
+ {{Element}}).</p></li>
+ <li><p><dfn export for=PlainTextRange id=plaintext-range-start>start offset</dfn> (a non-negative
+ integer).</p></li>
+ <li><p><dfn export for=PlainTextRange id=plaintext-range-end>end offset</dfn> (a non-negative
+ integer).</p></li>
+</ul>
+
+<p>The {{AbstractRange/startContainer}} getter steps for {{PlainTextRange}} objects are to return
+null.</p>

Thanks -- updated the AbstractRange IDL/getters. I omitted an explicit “opaque switch” since I assumed it’s an implementation detail, but I can add spec text if you think it’s needed.

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

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

Received on Wednesday, 4 February 2026 18:11:40 UTC