diff --git a/dom.bs b/dom.bs index 09595a60..059b8c94 100644 --- a/dom.bs +++ b/dom.bs @@ -2788,11 +2788,13 @@ before a child, with an optional suppress observers flag, run
If child is non-null:
For each live range whose start node is parent and +
For each live range or composed range whose + start node is parent and start offset is greater than child's index, increase its start offset by count. -
For each live range whose end node is parent and +
For each live range or composed range whose + end node is parent and end offset is greater than child's index, increase its end offset by count.
Text
node nod
While currentNode is an exclusive Text
node:
For each live range whose start node is currentNode, +
For each live range or composed range whose + start node is currentNode, add length to its start offset and set its start node to node. -
For each live range whose end node is currentNode, add +
For each live range or composed range whose + end node is currentNode, add length to its end offset and set its end node to node. -
For each live range whose start node is currentNode's +
For each live range or composed range whose + start node is currentNode's parent and start offset is currentNode's index, set its start node to node and its start offset to length. -
For each live range whose end node is currentNode's +
For each live range or composed range whose + end node is currentNode's parent and end offset is currentNode's index, set its end node to node and its end offset to length. @@ -5925,7 +5931,7 @@ are:
The createRange()
method steps are to return a new
-live range with (this, 0) as its start an end.
+live range with (this, 0) as its start and end.
The {{Range/Range()}} constructor can be used instead. @@ -7734,21 +7740,25 @@ string called data. node's data. -
For each live range whose start node is node and +
For each live range or composed range whose + start node is node and start offset is greater than offset but less than or equal to offset plus count, set its start offset to offset. -
For each live range whose end node is node and +
For each live range or composed range whose + end node is node and end offset is greater than offset but less than or equal to offset plus count, set its end offset to offset. -
For each live range whose start node is node and +
For each live range or composed range whose + start node is node and start offset is greater than offset plus count, increase its start offset by data's length and decrease it by count. -
For each live range whose end node is node and +
For each live range or composed range whose
+ end node is node and
end offset is greater than offset plus count, increase its
end offset by data's length and decrease it by
count.
@@ -7940,22 +7950,26 @@ constructor steps are to set this's data to
- For each live range whose start node is node and
+ For each live range or composed range whose
+ start node is node and
start offset is greater than offset, set its
start node to new node and decrease its start offset
by offset.
- For each live range whose end node is node and
+ For each live range or composed range whose
+ end node is node and
end offset is greater than offset, set its end node
to new node and decrease its end offset by offset.
- For each live range whose start node is parent and
+ For each live range or composed range whose
+ start node is parent and
start offset is equal to the index of node plus 1,
increase its start offset by 1.
- For each live range whose end node is parent and
+ For each live range or composed range whose
+ end node is parent and
end offset is equal to the index of node plus 1,
increase its end offset by 1.
The +composed position of a +boundary point (nodeA, offsetA) relative to a boundary point +(nodeB, offsetB) is +composed before, +composed equal, or +composed after, +as returned by these steps: + +
Assert: nodeA and nodeB have the same shadow-including root. + +
Assert: nodeA is nodeB. + +
If the position of (nodeA, offsetA) + relative to (nodeB, offsetB) is: + +
@@ -8305,6 +8356,13 @@ interface Range : AbstractRange { remove, move, replace data, and split algorithms) modify live ranges associated with that tree. +A composed range is a +range with an associated live range called +legacy uncomposed range. + +
The legacy uncomposed 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. @@ -8386,11 +8444,21 @@ follows:
For each live range whose end node is an inclusive descendant of node, set its end to (parent, index). -
For each live range whose start node is parent and +
For each composed range whose start node is a + shadow-including inclusive descendant of node, set its start to + (parent, index). + +
For each composed range whose end node is a + shadow-including inclusive descendant of node, set its end to + (parent, index). + +
For each live range or composed range whose + start node is parent and start offset is greater than index, decrease its start offset by 1. -
For each live range whose end node is parent and +
For each live range or composed range whose + end node is parent and end offset is greater than index, decrease its end offset by 1. @@ -8433,9 +8501,9 @@ to set this's start and end to
To -set the start or end -of a range to a boundary point (node, offset), run these -steps: + +set the start or end of a live range range to a boundary point +(node, offset), run these steps:
The composed range's start and +end can have different roots, but will have the +same shadow-including root. +
The setStart(node, offset)
method
steps are to set the start of this to boundary point
(node, offset).
@@ -10624,6 +10731,7 @@ David Håsäther,
David Hyatt,
Deepak Sherveghar,
Dethe Elza,
+Di Zhang,
Dimitri Glazkov,
Domenic Denicola,
Dominic Cooney,