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 start to +

  • 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:

    @@ -7774,9 +7774,9 @@ interface Range : AbstractRange {

    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 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.
  • Set range's - start to bp. + [=range start=] to bp.
    If these steps were invoked as "set the end"
    @@ -7911,12 +7911,12 @@ steps: node's root, or if bp is before the - range's start, set - range's start + range's [=range start=], set + range's [=range start=] to bp.
  • Set range's - end to bp. + [=range end=] to bp. @@ -7985,8 +7985,8 @@ steps are to set the end of this to boundary point

    The 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=].

    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).


    @@ -8071,30 +8071,30 @@ method steps are:
    {{Range/START_TO_START}}:
    Let this point be this's - start. + [=range start=]. Let other point be sourceRange's - start. + [=range start=].
    {{Range/START_TO_END}}:
    Let this point be this's - end. + [=range end=]. Let other point be sourceRange's - start. + [=range start=].
    {{Range/END_TO_END}}:
    Let this point be this's - end. + [=range end=]. Let other point be sourceRange's - end. + [=range end=].
    {{Range/END_TO_START}}:
    Let this point be this's - start. + [=range start=]. Let other point be sourceRange's - end. + [=range end=].
  • @@ -8192,8 +8192,8 @@ method steps are: original end node, offset 0, count original end offset and data the empty string. -
  • Set start and - end to +
  • Set [=range start=] and + [=range end=] to (new node, new offset). @@ -8375,9 +8375,9 @@ method steps are: to fragment.
  • Let subrange be a new live range - whose start is + whose [=range start=] is (original start node, original start offset) and - whose end is + whose [=range end=] is (first partially contained child, first partially contained child's length). @@ -8429,9 +8429,9 @@ method steps are: to fragment.
  • Let subrange be a new live range - whose start is + whose [=range start=] is (last partially contained child, 0) and whose - end is + [=range end=] is (original end node, original end offset).
  • Let subfragment be the result of extracting @@ -8441,8 +8441,7 @@ method steps are: clone. -

  • Set range's start and - end to +
  • Set range's [=range start=] and [=range end=] both to (new node, new offset).
  • Return fragment. @@ -8582,9 +8581,9 @@ of a live range range, run these steps: to fragment.
  • Let subrange be a new live range - whose start is + whose [=range start=] is (original start node, original start offset) and - whose end is + whose [=range end=] is (first partially contained child, first partially contained child's length). @@ -8640,9 +8639,9 @@ of a live range range, run these steps: to fragment.
  • Let subrange be a new live range - whose start is + whose [=range start=] is (last partially contained child, 0) and whose - end is + [=range end=] is (original end node, original end offset).
  • 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 insertNode(node) method steps are to @@ -8810,7 +8809,7 @@ check first thing, which matches everyone but Firefox.

    The 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.

    The 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:

  • If (node, offset) is before - start or + [=range start=] or after - end, return false. + [=range end=], return false.
  • Return true. @@ -8891,11 +8890,11 @@ and Opera Next 12.00 alpha all do. -->
  • If (node, offset) is before - start, return −1. + [=range start=], return −1.
  • If (node, offset) is after - end, return 1. + [=range end=], return 1.
  • Return 0. @@ -8926,10 +8925,10 @@ Firefox 12.0a1. -->
  • If (parent, offset) is before - end and (parent, + [=range end=] and (parent, offset plus 1) is after - start, return true. + [=range start=], return true.
  • Return false.