diff --git a/index.html b/index.html index adb86d9..02f526b 100644 --- a/index.html +++ b/index.html @@ -205,7 +205,7 @@

undefined removeRange(Range range); undefined removeAllRanges(); undefined empty(); - StaticRange getComposedRange(ShadowRoot... shadowRoots); + sequence<StaticRange> getComposedRanges(ShadowRoot... shadowRoots); undefined collapse(Node? node, optional unsigned long offset = 0); undefined setPosition(Node? node, optional unsigned long offset = 0); undefined collapseToStart(); @@ -393,13 +393,12 @@

- getComposedRange() method + getComposedRanges() method
    -
  1. If [=this=] is empty, return a new {{StaticRange}} whose [=range/start node=] - and [=range/end node=] are null and whose [=range/start offset=] and [=range/end offset=] are 0.
  2. -
  3. Let startNode be [=range/start node=] of the [=range=] associated with [=this=], +
  4. If [=this=] is empty, return an empty array.
  5. +
  6. Otherwise, let startNode be [=range/start node=] of the [=range=] associated with [=this=], and let startOffset be [=range/start offset=] of the [=range=].
  7. While startNode is a [=node=], startNode's [=tree/root=] is a [=shadow root=], and startNode is not a [=shadow-including inclusive ancestor=] of any of shadowRoots, @@ -419,7 +418,7 @@

  8. Set endNode to endNode's [=tree/root=]'s [=host=]'s [=tree/parent=].
-
  • Return a new {{StaticRange}} whose [=range/start node=] is startNode, [=range/start offset=] +
  • Return an array consisting of new {{StaticRange}} whose [=range/start node=] is startNode, [=range/start offset=] is startOffset, [=range/end node=] is endNode, and [=range/end offset=] is endOffset.