- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 20 May 2026 01:10:40 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 20 May 2026 08:10:44 UTC
@annevk commented on this pull request.
> @@ -8669,9 +8669,9 @@ be between 0 and the <a>boundary point</a>'s <a for="boundary point">node</a>'s
<pre class=idl>
[Exposed=Window]
interface AbstractRange {
- readonly attribute Node startContainer;
+ readonly attribute Node? startContainer;
readonly attribute unsigned long startOffset;
I think that means we need a `valueFromRange()` API or some such on `input` and `textarea`. Since the `input` element or `textarea` element allocated the `OpaqueRange` they will know what it contains and can thus answer such a question (if they want to). That would correctly preserve encapsulation and keep the design generic.
And as this range will have to point to the conceptual `Text` node of the element, the element can naturally only answer the API call for ranges that it created itself.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1404#discussion_r3272251631
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1404/review/4326442918@github.com>
Received on Wednesday, 20 May 2026 08:10:44 UTC