Re: [w3c/selection-api] Change getComposedRanges to have options as input (PR #331)

@annevk commented on this pull request.



> @@ -405,7 +409,7 @@ <h2>
             <li>Otherwise, let <var>startNode</var> be [=range/start node=] of the [=range=] associated with [=this=],
               and let <var>startOffset</var> be [=range/start offset=] of the [=range=].</li>
             <li>While <var>startNode</var> is a [=node=], <var>startNode</var>'s [=tree/root=] is a [=shadow root=],
-              and <var>startNode</var>'s [=tree/root=] is not a [=shadow-including inclusive ancestor=] of any of <var>shadowRoots</var>,
+              and <var>startNode</var>'s [=tree/root=] is not a [=shadow-including inclusive ancestor=] of any of <var>options.shadowRoots</var>,

shadowRoots here is not a variable, it's a string. I think something like

`<var>options</var>["{{GetComposedRangeOptions/shadowRoots}}"]`

should work assuming this is Bikeshed.

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

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

Received on Saturday, 28 September 2024 19:49:58 UTC