diff --git a/index.html b/index.html
index cc5fa85..1a58c66 100644
--- a/index.html
+++ b/index.html
@@ -210,7 +210,7 @@
undefined removeRange(Range range);
undefined removeAllRanges();
undefined empty();
- sequence<StaticRange> getComposedRanges(ShadowRoot... shadowRoots);
+ sequence<StaticRange> getComposedRanges(optional GetComposedRangesOptions options = {});
undefined collapse(Node? node, optional unsigned long offset = 0);
undefined setPosition(Node? node, optional unsigned long offset = 0);
undefined collapseToStart();
@@ -223,6 +223,10 @@
boolean containsNode(Node node, optional boolean allowPartialContainment = false);
stringifier;
};
+
+ dictionary GetComposedRangesOptions {
+ sequence<ShadowRoot> shadowRoots = [];
+ };
-
@@ -411,8 +415,9 @@
- While startNode is a [=node=],
startNode's [=tree/root=] is a [=shadow root=], and
startNode's [=tree/root=] is not a [=shadow-including
- inclusive ancestor=] of any of shadowRoots, repeat these
- steps:
+ inclusive ancestor=] of any of
+ options["{{GetComposedRangesOptions/shadowRoots}}"],
+ repeat these steps:
- Set startOffset to [=tree/index=] of
startNode's [=tree/root=]'s [=host=].
@@ -429,7 +434,9 @@
- While endNode is a [=node=], endNode's
[=tree/root=] is a [=shadow root=], and endNode's
[=tree/root=] is not a [=shadow-including inclusive ancestor=] of
- any of shadowRoots, repeat these steps:
+ any of
+ options["{{GetComposedRangesOptions/shadowRoots}}"],
+ repeat these steps:
- Set endOffset to [=tree/index=] of
endNode's [=tree/root=]'s [=host=] plus 1.