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()
- The new Range()
constructor steps are
@@ -8303,9 +8301,9 @@ steps:
To extract a {{Range}} live -range range, run these steps: +
To extract a {{Range}} object +range, run these steps:
Let fragment be a new {{DocumentFragment}} node whose @@ -8782,8 +8780,7 @@ range range, run these steps:
To clone the contents -of a {{Range}} live range range, run these steps: +of a {{Range}} object range, run these steps:
Let fragment be a new {{DocumentFragment}} node whose @@ -8989,7 +8985,7 @@ of a {{Range}} live range range, run these steps:
To insert a node -node into a {{Range}} live range range, run these steps: +node into a {{Range}} object range, run these steps:
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.