diff --git a/dom.bs b/dom.bs index 71ee81ab..3b34acf8 100644 --- a/dom.bs +++ b/dom.bs @@ -2767,11 +2767,11 @@ indicated in the remove algorithm below.
Let index be node's index.
For each live range whose start node is an - inclusive descendant of node, set its start to + inclusive descendant of node, set its [=range start=] to (parent, index).
For each live range whose end node is an inclusive descendant - of node, set its end to (parent, index). + of node, set its [=range end=] to (parent, index).
For each live range whose start node is parent and start offset is greater than index, decrease its @@ -5465,7 +5465,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 [=range start=] and [=range end=].
The {{Range/Range()}} constructor can be used instead.
@@ -7487,7 +7487,7 @@ constructor steps are to set this's data to Introduction to "DOM Ranges"
{{StaticRange}} and {{Range}} objects (ranges) represent a sequence of content within a
-node tree. Each range has a start and an end which
+node tree. Each range has a [=range start=] and a [=range end=] which
are boundary points. A boundary point is a tuple consisting of a
node and an offset. So in other words, a
range represents a piece of content within a node tree between two
@@ -7614,17 +7614,17 @@ interface AbstractRange {
ranges.
A range has two associated boundary points — a
-start and
-end.
+range start
+and a range end.
For convenience, a range's
-start node is its start's
+start node is its [=range start=]'s
node, its
start offset is its
-start's offset, its
-end node is its end's
+[=range start=]'s offset, its
+end node is its [=range end=]'s
node, and its
-end offset is its end's
+end offset is its [=range end=]'s
offset.
A range is collapsed if its start node is its
@@ -7694,9 +7694,9 @@ constructor steps are:
init["{{StaticRangeInit/endContainer}}"] is a {{DocumentType}} or {{Attr}}
node, then throw an "{{InvalidNodeTypeError!!exception}}" {{DOMException}}.
- Set this's [=range start=] to
(init["{{StaticRangeInit/startContainer}}"],
- init["{{StaticRangeInit/startOffset}}"]) and end to
+ init["{{StaticRangeInit/startOffset}}"]) and its [=range end=] to
(init["{{StaticRangeInit/endContainer}}"],
init["{{StaticRangeInit/endOffset}}"]).
@@ -7704,7 +7704,7 @@ constructor steps are:
A {{StaticRange}} is valid if all of the following are true:
Its [=range start=] and [=range end=] are in the same node tree.
Its start offset is between 0 and its start node's
length, inclusive.
@@ -7712,8 +7712,8 @@ constructor steps are:
Its end offset is between 0 and its end node's
length, inclusive.
- Its [=range start=] is before or
+ equal to its [=range end=].
A node node is contained
in a live range range if node's root is
range's root, and (node, 0) is
-after range's start, and
+after range's [=range start=], and
(node, node's length) is before
-range's end.
+range's [=range end=].
A node is
partially contained in a live range
@@ -7838,7 +7838,7 @@ but not its end node, or vice versa.
The The To select a node node
within a range range, run these steps:
@@ -7999,10 +7999,10 @@ within a range range, run these steps:
Let index be node's index.
- Set range's start to boundary point
+ Set range's [=range start=] to boundary point
(parent, index).
- Set range's end to boundary point
+ Set range's [=range end=] to boundary point
(parent, index plus 1).
@@ -8018,9 +8018,9 @@ are:
Let length be the length of node.
- Set start to the boundary point (node, 0).
+ Set [=range start=] to the boundary point (node, 0).
- Set end to the boundary point (node, length).
+ Set [=range end=] to the boundary point (node, length).
Let subfragment be the result of extracting
@@ -8441,8 +8441,7 @@ method steps are:
clone.
- Let subfragment be the result of cloning the contents
@@ -8756,7 +8755,7 @@ result of cloning the contents of this.
node into parent before referenceNode.
If range is collapsed, then set range's
- end to (parent, newOffset).
+ [=range end=] to (parent, newOffset).
The The The
-
@@ -7774,9 +7774,9 @@ interface Range : AbstractRange {
new Range()
constructor steps are
-to set this's start and end to
+to set this's [=range start=] and [=range end=] to
(current global object's associated Document
, 0).
@@ -7896,12 +7896,12 @@ steps:
node's root,
or if bp is
after the
- range's end, set
- range's end
+ range's [=range end=], set
+ range's [=range end=]
to bp.
collapse(toStart)
method steps are to, if
-toStart is true, set end to start; otherwise set
-start to end.
+toStart is true, set [=range end=] to [=range start=]; otherwise set
+[=range start=] to [=range end=].
@@ -8071,30 +8071,30 @@ method steps are:
insertNode(node)
method steps are to
@@ -8810,7 +8809,7 @@ check first thing, which matches everyone but Firefox.
cloneRange()
method steps are to return a new
-live range with the same start and end as this.
+live range with the same [=range start=] and [=range end=] as this.
detach()
method steps are to do nothing.
Its functionality (disabling a {{Range}} object) was removed, but the method itself
@@ -8860,9 +8859,9 @@ method steps are: