Re: [w3c/selection-api] Change Selection to be associated with a composed live range (PR #345)

@dizhang168 commented on this pull request.



> @@ -127,6 +128,20 @@ <h2>
         dev do not. We follow Gecko/WebKit, because it lessens the chance of
         getRangeAt(0) throwing.
       </p>
+      <p>To <dfn>reset the range</dfn> of [=this=], given the
+       <a>boundary point</a> <var>start</var> and <a>boundary point</a>
+       <var>end</var>, run these steps:
+      </p>
+      <ol>
+       <li>Let <var>newCachedRange</var> be a new {{Range}} object.</li>

Here, the {{Range}} should refer to the Range interface defined in [dom]. However, it keeps pointing to <dfn>range</dfn>, which I redefined in this PR. How can I overwrite this behavior?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/pull/345#pullrequestreview-2571399462
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/pull/345/review/2571399462@github.com>

Received on Friday, 24 January 2025 00:31:03 UTC