diff --git a/dom.bs b/dom.bs index 78ad3d66a..c7265f4cb 100644 --- a/dom.bs +++ b/dom.bs @@ -3040,7 +3040,7 @@ optional suppress observers flag, run these steps: shadow-including inclusive descendant of node, set its start to (parent, index). -
  • For each composed live range whose end node is an +

  • For each composed live range whose end node is a shadow-including inclusive descendant of node, set its end to (parent, index). @@ -5785,8 +5785,7 @@ are:


    The createRange() method steps are to return a new -{{Range}} live range with (this, 0) as its start and end. +{{Range}} object with (this, 0) as its start and end.

    The {{Range/Range()}} constructor can be used instead. @@ -7921,11 +7920,11 @@ range.setEnd(secondText, 4) node tree above cannot be represented by a range. Ranges are only useful for nodes. -

    {{Range}} objects, unlike {{StaticRange}} objects, are affected by mutations to the node -tree. Therefore they are live ranges. Such mutations will not invalidate them and will -try to ensure that it still represents the same piece of content. Necessarily, a live range -might itself be modified as part of the mutation to the node tree when, e.g., part of the -content it represents is mutated. +

    {{Range}} objects, unlike {{StaticRange}} objects, are affected by mutations to the +node tree. Therefore they are live ranges. Such mutations will not invalidate them and +will try to ensure that it still represents the same piece of content. Necessarily, a +live range might itself be modified as part of the mutation to the node tree when, +e.g., part of the content it represents is mutated.

    See the insert and remove algorithms, the {{Node/normalize()}} method, and the replace data and split @@ -8162,12 +8161,11 @@ mutations to the node tree.

    live ranges associated with that tree.

    A composed live range is a live range -that has one associated {{Range}} object - cached live -range.

    +that has one associated {{Range}} object — +cached live range.

    -

    The cached live range is used to maintain backward compatibility with the -{{getRangeAt}} API.

    +

    The cached live range is used to maintain backward +compatibility with the {{getRangeAt}} API.

    The root of a live range is the root of its start node. @@ -8237,7 +8235,7 @@ but not its end node, or vice versa.

    range = new Range() -
    Returns a new {{Range}} live range. +
    Returns a new {{Range}} object.

    The new Range() constructor steps are @@ -8303,9 +8301,9 @@ steps:

  • Set range's start to bp. -
  • If range is the associated cached live range of a composed live - range composed live range, set composed live range’s start to bp. +
  • If range is the cached live range of a + composed live range, set composed live range’s + start to bp.
    If these steps were invoked as "set the end"
    @@ -8322,9 +8320,9 @@ steps:
  • Set range's end to bp. -
  • If range is the associated cached live range of a composed live range - composed live range, set composed live range’s end to - bp. +
  • If range is the cached live range of a + composed live range, set composed live range’s + end to bp. @@ -8605,8 +8603,8 @@ method steps are: (new node, new offset). -

    To extract a {{Range}} live -range range, run these steps: +

    To extract a {{Range}} object +range, run these steps:

    1. Let fragment be a new {{DocumentFragment}} node whose @@ -8782,8 +8780,7 @@ range range, run these steps:

    2. Append clone to fragment. -
    3. Let subrange be a new {{Range}} live range - whose start is +
    4. Let subrange be a new {{Range}} object whose start is (original start node, original start offset) and whose end is (first partially contained child, first partially contained child's @@ -8836,8 +8833,7 @@ range range, run these steps:
    5. Append clone to fragment. -
    6. Let subrange be a new {{Range}} live range - whose start is +
    7. Let subrange be a new {{Range}} object whose start is (last partially contained child, 0) and whose end is (original end node, original end offset). @@ -8861,7 +8857,7 @@ result of extracting this.

      To clone the contents -of a {{Range}} live range range, run these steps: +of a {{Range}} object range, run these steps:

      1. Let fragment be a new {{DocumentFragment}} node whose @@ -8989,7 +8985,7 @@ of a {{Range}} live range range, run these steps:

      2. Append clone to fragment. -
      3. Let subrange be a new {{Range}} live range +
      4. Let subrange be a new {{Range}} object whose start is (original start node, original start offset) and whose end is @@ -9047,7 +9043,7 @@ of a {{Range}} live range range, run these steps:
      5. Append clone to fragment. -
      6. Let subrange be a new {{Range}} live range +
      7. Let subrange be a new {{Range}} object whose start is (last partially contained child, 0) and whose end is @@ -9067,7 +9063,7 @@ of a {{Range}} live range range, run these steps: result of cloning the contents of this.

        To insert a node -node into a {{Range}} live range range, run these steps: +node into a {{Range}} object range, run these steps:

        1. If range's start node is a {{ProcessingInstruction}} or {{Comment}} @@ -9217,7 +9213,7 @@ check first thing, which matches everyone but Firefox.

        The cloneRange() method steps are to return a new -{{Range}} live range with the same start and end as +{{Range}} object with the same start and end as this.

        The detach() method steps are to do nothing.