Skip to content

Commit

Permalink
Change getComposedRanges to have options as input
Browse files Browse the repository at this point in the history
  • Loading branch information
dizhang168 committed Jul 31, 2024
1 parent 4397d66 commit 06a2f89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ <h2>
undefined removeRange(Range range);
undefined removeAllRanges();
undefined empty();
sequence&lt;StaticRange&gt; getComposedRanges(ShadowRoot... shadowRoots);
sequence&lt;StaticRange&gt; getComposedRanges(optional GetComposedRangesOptions options = {});
undefined collapse(Node? node, optional unsigned long offset = 0);
undefined setPosition(Node? node, optional unsigned long offset = 0);
undefined collapseToStart();
Expand All @@ -222,6 +222,10 @@ <h2>
boolean containsNode(Node node, optional boolean allowPartialContainment = false);
stringifier;
};

dictionary GetComposedRangesOptions {
sequence<ShadowRoot> shadowRoots = [];
};
</pre>
<dl>
<dt>
Expand Down

0 comments on commit 06a2f89

Please sign in to comment.