Re: [whatwg/dom] Add definition for composed selection range (PR #1342)

@dizhang168 commented on this pull request.



> @@ -8141,12 +8149,21 @@ interface Range : AbstractRange {
 };
 </pre>
 
-<p>Objects implementing the {{Range}} interface are known as
-<dfn export id=concept-live-range>live ranges</dfn>.
+<p>A <dfn export id=concept-live-range>live range</dfn> is a <a>range</a> that is affected by
+mutations to the <a>node tree</a>.</p>
+
+<p>Objects implementing the {{Range}} interface are <a>live ranges</a>.

The only references to "live ranges" are from Selection API and Highlight API. In both case, they mean to refer to Range object. We can update those references, although maybe it would be simpler to keep the current live ranges definition and change "composed live range" to:

> A **composed live range** is a [range](https://dom.spec.whatwg.org/#concept-range) that is affected by mutations to the node tree and has an associated [live range](https://dom.spec.whatwg.org/#concept-live-range) called a **legacy live range**.

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

Message ID: <whatwg/dom/pull/1342/review/2625382151@github.com>

Received on Wednesday, 19 February 2025 00:48:50 UTC