diff --git a/dom.bs b/dom.bs index 8645c1ff..783c57f1 100644 --- a/dom.bs +++ b/dom.bs @@ -3034,6 +3034,14 @@ optional suppress observers flag, run these steps:
For each live range whose end node is an inclusive descendant of node, set its end to (parent, index). +
For each composed selection range whose start node is a + shadow-including inclusive descendant of node, set its start to + (parent, index). + +
For each composed selection range whose end node is a + shadow-including inclusive descendant of node, set its end to + (parent, index). +
For each live range whose start node is parent and start offset is greater than index, decrease its start offset by 1. @@ -5775,7 +5783,7 @@ are:
The createRange()
method steps are to return a new
-live range with (this, 0) as its start an end.
+{{Range}} object with (this, 0) as its start and end.
The {{Range/Range()}} constructor can be used instead. @@ -8141,12 +8149,21 @@ interface Range : AbstractRange { }; -
Objects implementing the {{Range}} interface are known as -live ranges. +
A live range is a range that is affected by +mutations to the node tree.
+ +Objects implementing the {{Range}} interface are live ranges.
Algorithms that modify a tree (in particular the insert, remove, replace data, and split algorithms) modify -live ranges associated with that tree. +live ranges associated with that tree.
+ +A composed selection range is a +live range that has an associated {{Range}} object, a +legacy selection range.
+ +The legacy selection range is used to maintain +backward compatibility with the {{Selection/getRangeAt()}} API.
The root of a live range is the root of its start node. @@ -8216,7 +8233,7 @@ but not its end node, or vice versa.
range = new Range()
- The new Range()
constructor steps are
@@ -8265,6 +8282,12 @@ steps:
boundary point
(node, offset).
+
To extract a live range +
To extract a {{Range}} object range, run these steps:
To clone the contents -of a live range range, run these steps: +of a {{Range}} object range, run these steps:
Let fragment be a new {{DocumentFragment}} node whose @@ -8960,7 +9007,7 @@ of a live range range, run these steps:
To insert a node -node into a live range range, run these steps: +node into a {{Range}} object range, run these steps:
The cloneRange()
method steps are to return a new
-live range with the same start and end as this.
+{{Range}} object with the same start and end as
+this.
The detach()
method steps are to do nothing.
Its functionality (disabling a {{Range}} object) was removed, but the method itself
@@ -10441,6 +10489,7 @@ David Håsäther,
David Hyatt,
Deepak Sherveghar,
Dethe Elza,
+Di Zhang,
Dimitri Glazkov,
Domenic Denicola,
Dominic Cooney,