From 3a5e18a05a385564eea8e6b406dd2244fb4fe66a Mon Sep 17 00:00:00 2001 From: ArkadiuszMichalski Date: Mon, 26 Oct 2015 21:19:58 +0100 Subject: [PATCH] Close #100: lowercase more IDs --- dom.bs | 26 +++--- dom.html | 250 +++++++++++++++++++++++++++---------------------------- 2 files changed, 138 insertions(+), 138 deletions(-) diff --git a/dom.bs b/dom.bs index 4c80dc949..292b92ebf 100644 --- a/dom.bs +++ b/dom.bs @@ -2491,10 +2491,10 @@ to the tree of Each {{MutationObserver}} object has these associated concepts:
@@ -3875,7 +3875,7 @@ method must return the result of
The -list of elements with local name localName +list of elements with local name localName for a node root is the {{HTMLCollection}} returned by the following algorithm:
    @@ -3917,7 +3917,7 @@ returned by an earlier call. The -list of elements with namespace +list of elements with namespace namespace and local name localName for a node root is the {{HTMLCollection}} returned by the following algorithm: @@ -3962,7 +3962,7 @@ object may be returned as returned by an earlier call. The -list of elements with class names classNames +list of elements with class names classNames for a node root is the {{HTMLCollection}} returned by the following algorithm:
      @@ -4997,7 +4997,7 @@ interface DocumentFragment : Node { A {{DocumentFragment}} node can have an associated element named -host. +host. An object A is a host-including inclusive ancestor @@ -5787,11 +5787,11 @@ interface NamedNodeMap { A {{NamedNodeMap}} has an associated -element (an +element (an element). A {{NamedNodeMap}} object's -attribute list is its +attribute list is its element's attribute list. @@ -6013,9 +6013,9 @@ not exist as node. It is used by Each node inheriting from the {{CharacterData}} interface has an associated mutable string -called data. +called data. -To replace data of node +To replace data of node node with offset offset, count count, and data data, run these steps: @@ -6114,7 +6114,7 @@ Authors who want WebKit-like behavior can always use replaceData() instead. XXX replaceData is the same as setting data these days --> -To substring data with node +To substring data with node node, offset offset, and count count, run these steps: @@ -6220,7 +6220,7 @@ must return a new {{Text}} node whose node document is the global object's associated document. -To split a {{Text}} +To split a {{Text}} node node with offset offset, run these steps: @@ -6362,7 +6362,7 @@ interface ProcessingInstruction : CharacterData { {{ProcessingInstruction}} nodes -have an associated target. +have an associated target. The target attribute must return the target. diff --git a/dom.html b/dom.html index 5812f9568..778fd87a4 100644 --- a/dom.html +++ b/dom.html @@ -69,7 +69,7 @@

      DOM

      -

      Living Standard — Last Updated

      +

      Living Standard — Last Updated

      Participate: @@ -1037,7 +1037,7 @@

      Let node be null.

    1. -

      Replace each string in nodes with a Text node whose data is the string.

      +

      Replace each string in nodes with a Text node whose data is the string.

    2. If nodes contains one node, set node to that node.

    3. @@ -1361,10 +1361,10 @@

      For each MutationObserver object mo in notify list, execute a compound microtask subtask to run these steps: [HTML]
        -
      1. Let queue be a copy of mo’s record queue. -
      2. Empty mo’s record queue. +
      3. Let queue be a copy of mo’s record queue. +
      4. Empty mo’s record queue.
      5. Remove all transient registered observers whose observer is mo. -
      6. If queue is non-empty, call mo’s callback with queue as first argument, and mo (itself) as second argument and callback this value. If this throws an exception, report the exception. +
      7. If queue is non-empty, call mo’s callback with queue as first argument, and mo (itself) as second argument and callback this value. If this throws an exception, report the exception.


    @@ -1397,13 +1397,13 @@

    < to the tree of nodes.

    Each MutationObserver object has these associated concepts:

      -
    • A callback set on creation. +
    • A callback set on creation.
    • A list of nodes on which it is a registered observer’s observer that is initially empty. -
    • A list of MutationRecord objects called the record queue that is initially empty. +
    • A list of MutationRecord objects called the record queue that is initially empty.
    observer = new MutationObserver(callback) -
    Constructs a MutationObserver object and sets its callback to callback. The callback is invoked with a +
    Constructs a MutationObserver object and sets its callback to callback. The callback is invoked with a list of MutationRecord objects as first argument and the constructed MutationObserver object as second argument. It is invoked after nodes registered with the observe() method, are @@ -1422,7 +1422,7 @@

    <
    Set to true if mutations to target’s attributes are to be observed. Can be omitted if attributeOldValue and/or attributeFilter is specified.
    characterData -
    Set to true if mutations to target’s data are to be observed. Can be omitted if characterDataOldValue is specified. +
    Set to true if mutations to target’s data are to be observed. Can be omitted if characterDataOldValue is specified.
    subtree
    Set to true if mutations to not just target, but also target’s descendants are to be @@ -1432,7 +1432,7 @@

    < and target’s attribute value before the mutation needs to be recorded.
    characterDataOldValue -
    Set to true if characterData is set to true or omitted and target’s data before the mutation +
    Set to true if characterData is set to true or omitted and target’s data before the mutation needs to be recorded.
    attributeFilter
    Set to a list of attribute local names (without namespace) if not all attribute mutations need to be @@ -1442,12 +1442,12 @@

    <
    observer . disconnect()
    Stops observer from observing any mutations. Until the observe() method - is used again, observer’s callback will not be invoked. + is used again, observer’s callback will not be invoked.
    observer . takeRecords() -
    Empties the record queue and +
    Empties the record queue and returns what was in there.

    -

    The MutationObserver(callback) constructor must create a new MutationObserver object with callback set to callback, +

    The MutationObserver(callback) constructor must create a new MutationObserver object with callback set to callback, append it to the unit of related similar-origin browsing contexts' list of MutationObserver objects, and then return it.

    The observe(target, options) method, when invoked, must run these steps:

    @@ -1472,8 +1472,8 @@

    < and add target to context object’s list of nodes on which it is registered.

The disconnect() method must, for each node node in the context object’s list of nodes, remove any registered observer on node for which the context object is the observer, and also -empty context object’s record queue.

-

The takeRecords() method must return a copy of the record queue and then empty the record queue.

+empty context object’s record queue.

+

The takeRecords() method must return a copy of the record queue and then empty the record queue.

4.3.2. Queuing a mutation record

To queue a mutation record of type for target with one or more of (depends on type) name name, namespace namespace, oldValue oldValue, addedNodes addedNodes, removedNodes removedNodes, previousSibling previousSibling, and nextSibling nextSibling, run these steps:

@@ -1508,7 +1508,7 @@

<
  • If nextSibling is given, set record’s nextSibling to nextSibling.
  • If observer has a paired string, set record’s oldValue to observer’s paired string. -
  • Append record to observer’s record queue. +
  • Append record to observer’s record queue.
  • Queue a mutation observer compound microtask. @@ -1555,7 +1555,7 @@

    The return value depends on type. For "attributes", it is the value of the changed attribute before the change. - For "characterData", it is the data of the changed node before the change. For + For "characterData", it is the data of the changed node before the change. For "childList", it is null.

  • The type and target attributes must return the values they were initialized to.

    @@ -1661,7 +1661,7 @@

    Text
    "#text".
    ProcessingInstruction -
    Its target. +
    Its target.
    Comment
    "#comment".
    Document @@ -1699,7 +1699,7 @@

    Text
    "#text".
    ProcessingInstruction -
    Its target. +
    Its target.
    Comment
    "#comment".
    Document @@ -1761,7 +1761,7 @@

    Text
    Comment
    ProcessingInstruction -
    The context object’s data. +
    The context object’s data.
    Any other node
    Null. @@ -1772,7 +1772,7 @@

    Text
    Comment
    ProcessingInstruction -
    Replace data with node context object, offset 0, count length attribute value, and +
    Replace data with node context object, offset 0, count length attribute value, and data new value.
    Any other node
    Do nothing. @@ -1781,12 +1781,12 @@

    DocumentFragment
    Element -
    The concatenation of data of all +
    The concatenation of data of all the Text node descendants of the context object, in tree order.
    Text
    ProcessingInstruction
    Comment -
    The context object’s data. +
    The context object’s data.
    Any other node
    Null. @@ -1800,13 +1800,13 @@

    Text node whose data is new value. + a new Text node whose data is new value.
  • Replace all with node within the context object.
    Text
    ProcessingInstruction
    Comment -
    Replace data with node context object, offset 0, count length attribute value, and +
    Replace data with node context object, offset 0, count length attribute value, and data new value.
    Any other node
    Do nothing. @@ -1815,7 +1815,7 @@

    node . normalize()()
    Removes empty Text nodes and concatenates - the data of remaining contiguous Text nodes into the first of their nodes. + the data of remaining contiguous Text nodes into the first of their nodes.

    The normalize() method must run these steps:

    @@ -1825,8 +1825,8 @@

    length attribute value.
  • If length is zero, remove node and continue with the next Text node, if any. -
  • Let data be the concatenation of the data of node’s contiguous Text nodes (excluding itself), in tree order. -
  • Replace data with node node, offset length, +
  • Let data be the concatenation of the data of node’s contiguous Text nodes (excluding itself), in tree order. +
  • Replace data with node node, offset length, count 0, and data data.
  • Let current node be node’s next sibling.
  • @@ -1883,9 +1883,9 @@

    Text
    Comment -
    Set copy’s data, to that of node. +
    Set copy’s data, to that of node.
    ProcessingInstruction -
    Set copy’s target and data to +
    Set copy’s target and data to those of node.
    Any other node
    — @@ -1911,10 +1911,10 @@

    namespace, namespace prefix, local name, and its number of attributes in its attribute list.
    ProcessingInstruction -
    Its target and data. +
    Its target and data.
    Text
    Comment -
    Its data. +
    Its data.
    Any other node
    — @@ -2059,7 +2059,7 @@

    replaceChild(node, child) method must return the result of replacing child with node within the context object.

    The removeChild(child) method must return the result of pre-removing child from the context object.


    -

    The list of elements with local name localName for a node root is the HTMLCollection returned by the following algorithm:

    +

    The list of elements with local name localName for a node root is the HTMLCollection returned by the following algorithm:

    1. If localName is "*" (U+002A), return a HTMLCollection rooted at root, @@ -2074,7 +2074,7 @@

      node document’s type has not changed, the same HTMLCollection object may be returned as returned by an earlier call.

      -

      The list of elements with namespace namespace and local name localName for a node root is the HTMLCollection returned by the following algorithm:

      +

      The list of elements with namespace namespace and local name localName for a node root is the HTMLCollection returned by the following algorithm:

      1. If namespace is the empty string, set it to null.
      2. If both namespace and localName are "*" (U+002A), return a HTMLCollection rooted at root, whose filter matches descendant elements. @@ -2085,7 +2085,7 @@

        HTMLCollection rooted at root, whose filter matches descendant elements whose namespace is namespace and local name is localName.

      When invoked with the same arguments, the same HTMLCollection object may be returned as returned by an earlier call.

      -

      The list of elements with class names classNames for a node root is the HTMLCollection returned by the following algorithm:

      +

      The list of elements with class names classNames for a node root is the HTMLCollection returned by the following algorithm:

      1. Let classes be the result of running the ordered set parser on classNames.
      2. If classes is the empty set, return an empty HTMLCollection. @@ -2309,12 +2309,12 @@

        The doctype attribute must return the child of the document that is a doctype, and null otherwise.

        The documentElement attribute must return the document element.

        -

        The getElementsByTagName(localName) method must return the list of elements with local name localName for the context object.

        +

        The getElementsByTagName(localName) method must return the list of elements with local name localName for the context object.

        Thus, in an HTML document, document.getElementsByTagName("FOO") will match <FOO> elements that are not in the HTML namespace, and <foo> elements that are in the HTML namespace, but not <FOO> elements that are in the HTML namespace.

        -

        The getElementsByTagNameNS(namespace, localName) method must return the list of elements with namespace namespace and local name localName for the context object.

        -

        The getElementsByClassName(classNames) method must return the list of elements with class names classNames for the context object.

        +

        The getElementsByTagNameNS(namespace, localName) method must return the list of elements with namespace namespace and local name localName for the context object.

        +

        The getElementsByClassName(classNames) method must return the list of elements with class names classNames for the context object.

        Given the following XHTML fragment:
        <div id="example">
        @@ -2352,11 +2352,11 @@ 

        documentFragment = document . createDocumentFragment()
        Returns a DocumentFragment node.
        text = document . createTextNode(data) -
        Returns a Text node whose data is data. +
        Returns a Text node whose data is data.
        comment = document . createComment(data) -
        Returns a Comment node whose data is data. +
        Returns a Comment node whose data is data.
        processingInstruction = document . createProcessingInstruction(target, data) -
        Returns a ProcessingInstruction node whose target is target and data is data. +
        Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an InvalidCharacterError exception will be thrown. If data contains "?>" an InvalidCharacterError exception will be thrown. @@ -2380,10 +2380,10 @@

        namespace set to namespace, namespace prefix set to prefix, local name set to localName, and node document set to the context object.

      The createDocumentFragment() method must return a new DocumentFragment node with its node document set to the context object.

      -

      The createTextNode(data) method must return a new Text node with its data set to data and node document set to the context object.

      +

      The createTextNode(data) method must return a new Text node with its data set to data and node document set to the context object.

      No check is performed that data consists of characters that match the Char production.

      -

      The createComment(data) method must return a new Comment node with its data set to data and node document set to the context object.

      +

      The createComment(data) method must return a new Comment node with its data set to data and node document set to the context object.

      No check is performed that data consists of characters that match the Char production or that it contains two adjacent hyphens or ends with a hyphen.

      @@ -2392,7 +2392,7 @@

      If target does not match the Name production, throw an InvalidCharacterError exception.
    2. If data contains the string "?>", throw an InvalidCharacterError exception. -
    3. Return a new ProcessingInstruction node, with target set to target, data set to data, and node document set to the context object. +
    4. Return a new ProcessingInstruction node, with target set to target, data set to data, and node document set to the context object.

    No check is performed that target contains "xml" or ":", or that data contains characters that match the Char production.

    @@ -2588,7 +2588,7 @@

    If the title argument is not omitted:
    1. Append a new title element in the HTML namespace, to the head element created earlier. -
    2. Append a new Text node, with its data set to title (which could be the empty string), to the title element created +
    3. Append a new Text node, with its data set to title (which could be the empty string), to the title element created earlier.
  • Append a new body element in the HTML namespace, to the html element created earlier. @@ -2610,9 +2610,9 @@

    A DocumentFragment node can have an -associated element named host.

    -

    An object A is a host-including inclusive ancestor of an object B, if either A is an inclusive ancestor of B, or if B’s root has an associated host and A is a host-including inclusive ancestor of B’s root’s host.

    -

    The DocumentFragment node’s host concept is useful for HTML’s template element and the ShadowRoot object and impacts the pre-insert and replace algorithms.

    +associated element named host.

    +

    An object A is a host-including inclusive ancestor of an object B, if either A is an inclusive ancestor of B, or if B’s root has an associated host and A is a host-including inclusive ancestor of B’s root’s host.

    +

    The DocumentFragment node’s host concept is useful for HTML’s template element and the ShadowRoot object and impacts the pre-insert and replace algorithms.

    tree = new DocumentFragment()
    Returns a new DocumentFragment node. @@ -2904,9 +2904,9 @@

    [SELECTORS4]
    -

    The getElementsByTagName(localName) method must return the list of elements with local name localName for the context object.

    -

    The getElementsByTagNameNS(namespace, localName) method must return the list of elements with namespace namespace and local name localName for the context object.

    -

    The getElementsByClassName(classNames) method must return the list of elements with class names classNames for the context object.

    +

    The getElementsByTagName(localName) method must return the list of elements with local name localName for the context object.

    +

    The getElementsByTagNameNS(namespace, localName) method must return the list of elements with namespace namespace and local name localName for the context object.

    +

    The getElementsByClassName(classNames) method must return the list of elements with class names classNames for the context object.

    4.8.1. Interface NamedNodeMap

    [Exposed=Window]
     interface NamedNodeMap {
    @@ -2920,35 +2920,35 @@ 

    Attr removeNamedItemNS(DOMString? namespace, DOMString localName); };

    -

    A NamedNodeMap has an associated element (an element).

    -

    A NamedNodeMap object’s attribute list is its element’s attribute list.

    +

    A NamedNodeMap has an associated element (an element).

    +

    A NamedNodeMap object’s attribute list is its element’s attribute list.


    A NamedNodeMap object’s supported property indices are the numbers in the -range zero to the number of attributes in its attribute list map minus one, unless the attribute list is empty, in which case +range zero to the number of attributes in its attribute list map minus one, unless the attribute list is empty, in which case there are no supported property indices.

    The length attribute’s getter -must return the number of attributes in the attribute list.

    +must return the number of attributes in the attribute list.

    The item(index) method, when invoked, must run these steps:

      -
    1. If index is equal to or greater than the number of attributes in the attribute list, return null. -
    2. Otherwise, return the indexth attribute in the attribute list. +
    3. If index is equal to or greater than the number of attributes in the attribute list, return null. +
    4. Otherwise, return the indexth attribute in the attribute list.
    -

    A NamedNodeMap object’s supported property names, all unenumerable, are the names of the attributes in the attribute list, in order.

    -

    The getNamedItem(name) method, when invoked, must return the result of getting an attribute given name and element.

    -

    The getNamedItemNS(namespace, localName) method, when invoked, must return the result of getting an attribute given namespace, localName, and element.

    -

    The setNamedItem(attr) method, when invoked, must return the result of setting an attribute given attr and element. Rethrow +

    A NamedNodeMap object’s supported property names, all unenumerable, are the names of the attributes in the attribute list, in order.

    +

    The getNamedItem(name) method, when invoked, must return the result of getting an attribute given name and element.

    +

    The getNamedItemNS(namespace, localName) method, when invoked, must return the result of getting an attribute given namespace, localName, and element.

    +

    The setNamedItem(attr) method, when invoked, must return the result of setting an attribute given attr and element. Rethrow any exceptions.

    -

    The setNamedItemNS(attr) method, when invoked, must return the result of setting an attribute given attr, element, and namespace and local name flag set. Rethrow any exceptions.

    +

    The setNamedItemNS(attr) method, when invoked, must return the result of setting an attribute given attr, element, and namespace and local name flag set. Rethrow any exceptions.

    The removeNamedItem(name) method, when invoked, must run these steps:

      -
    1. Let attr be the result of removing an attribute given name and element. +
    2. Let attr be the result of removing an attribute given name and element.
    3. If attr is null, throw a NotFoundError exception.
    4. Return attr.

    The removeNamedItemNS(namespace, localName) method, when invoked, must run these steps:

      -
    1. Let attr be the result of removing an attribute given namespace, localName, and element. +
    2. Let attr be the result of removing an attribute given namespace, localName, and element.
    3. If attr is null, throw a NotFoundError exception.
    4. Return attr.
    @@ -3014,45 +3014,45 @@

    CharacterData is an abstract interface and does not exist as node. It is used by Text, Comment, and ProcessingInstruction nodes.

    Each node inheriting from the CharacterData interface has an associated mutable string -called data.

    -

    To replace data of node node with offset offset, count count, and data data, run these steps:

    +called data.

    +

    To replace data of node node with offset offset, count count, and data data, run these steps:

    1. Let length be node’s length attribute value.
    2. If offset is greater than length, throw an IndexSizeError exception.
    3. If offset plus count is greater than length let count be length minus offset.
    4. Queue a mutation record of "characterData" - for node with oldValue node’s data. -
    5. Insert data into node’s data after offset code units. + for node with oldValue node’s data. +
    6. Insert data into node’s data after offset code units.
    7. Let delete offset be offset plus the number of code units in data. -
    8. Starting from delete offset code units, remove count code units from node’s data. +
    9. Starting from delete offset code units, remove count code units from node’s data.
    10. For each 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.
    11. For each 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.
    12. For each range whose start node is node and start offset is greater than offset plus count, increase its start offset by the number of code units in data, then decrease it by count.
    13. For each range whose end node is node and end offset is greater than offset plus count, increase its end offset by the number of code units in data, then decrease it by count.

    -

    To substring data with node node, offset offset, and count count, run these steps:

    +

    To substring data with node node, offset offset, and count count, run these steps:

    1. Let length be node’s length attribute value.
    2. If offset is greater than length, throw an IndexSizeError exception.
    3. If offset plus count is - greater than length, return a string whose value is the code units from the offsetth code unit to the end of node’s data, and then + greater than length, return a string whose value is the code units from the offsetth code unit to the end of node’s data, and then terminate these steps. -
    4. Return a string whose value is the code units from the offsetth code unit to the offset+countth code unit in node’s data. +
    5. Return a string whose value is the code units from the offsetth code unit to the offset+countth code unit in node’s data.

    The data attribute -must return data, and on setting, must replace data with node context object offset 0, count length attribute value, and data +must return data, and on setting, must replace data with node context object offset 0, count length attribute value, and data new value.

    -

    The length attribute must return the number of code units in data.

    -

    The substringData(offset, count) method must substring data with node context object, offset offset, and count count.

    -

    The appendData(data) method must replace data with node context object, offset length attribute value, count 0, +

    The length attribute must return the number of code units in data.

    +

    The substringData(offset, count) method must substring data with node context object, offset offset, and count count.

    +

    The appendData(data) method must replace data with node context object, offset length attribute value, count 0, and data data.

    -

    The insertData(offset, data) method must replace data with node context object, offset offset, count 0, and +

    The insertData(offset, data) method must replace data with node context object, offset offset, count 0, and data data.

    -

    The deleteData(offset, count) method must replace data with node context object, offset offset, count count, and data the empty string.

    -

    The replaceData(offset, count, data) method must replace data with node context object, offset offset, count count, and data data.

    +

    The deleteData(offset, count) method must replace data with node context object, offset offset, count count, and data the empty string.

    +

    The replaceData(offset, count, data) method must replace data with node context object, offset offset, count count, and data data.

    4.10. Interface Text

    [Constructor(optional DOMString data = ""),
      Exposed=Window]
    @@ -3062,21 +3062,21 @@ 

    text = new Text([data = ""]) -
    Returns a new Text node whose data is data. +
    Returns a new Text node whose data is data.
    text . splitText(offset) -
    Splits data at the given offset and returns the remainder as Text node. +
    Splits data at the given offset and returns the remainder as Text node.
    text . wholeText -
    Returns the combined data of all direct Text node siblings. +
    Returns the combined data of all direct Text node siblings.

    The Text(data) constructor -must return a new Text node whose data is data and node document is the global object’s associated document.

    -

    To split a Text node node with offset offset, run these steps:

    +must return a new Text node whose data is data and node document is the global object’s associated document.

    +

    To split a Text node node with offset offset, run these steps:

    1. Let length be node’s length attribute value.
    2. If offset is greater than length, throw an IndexSizeError exception.
    3. Let count be length minus offset. -
    4. Let new data be the result of substringing data with node node, offset offset, and count count. -
    5. Let new node be a new Text node, with the same node document as node. Set new node’s data to new data. +
    6. Let new data be the result of substringing data with node node, offset offset, and count count. +
    7. Let new node be a new Text node, with the same node document as node. Set new node’s data to new data.
    8. Let parent be node’s parent.
    9. If parent is not null, run these substeps: @@ -3089,7 +3089,7 @@

      range whose end node is parent and end offset is equal to the index of node + 1, increase its end offset by one.

    -
  • Replace data with node node, offset offset, count count, and data the empty string. +
  • Replace data with node node, offset offset, count count, and data the empty string.
  • If parent is null, run these substeps:
      @@ -3099,18 +3099,18 @@

      splitText(offset) method must split the context object with offset offset.

      +

      The splitText(offset) method must split the context object with offset offset.

      The contiguous Text nodes of a node are the node itself, the previous sibling Text node (if any) and its contiguous Text nodes, and the next sibling Text node (if any) and its contiguous Text nodes, avoiding any duplicates.

      -

      The wholeText attribute must return a concatenation of the data of the contiguous Text nodes of the context object, in tree order.

      +

      The wholeText attribute must return a concatenation of the data of the contiguous Text nodes of the context object, in tree order.

      4.11. Interface ProcessingInstruction

      [Exposed=Window]
       interface ProcessingInstruction : CharacterData {
         readonly attribute DOMString target;
       };
      -

      ProcessingInstruction nodes have an associated target.

      -

      The target attribute must return the target.

      +

      ProcessingInstruction nodes have an associated target.

      +

      The target attribute must return the target.

      4.12. Interface Comment

      [Constructor(optional DOMString data = ""),
        Exposed=Window]
      @@ -3119,9 +3119,9 @@ 

      comment = new Comment([data = ""]) -
      Returns a new Comment node whose data is data. +
      Returns a new Comment node whose data is data.
      -

      The Comment(data) constructor must return a new Comment node whose data is data and node document is the global object’s associated document.

      +

      The Comment(data) constructor must return a new Comment node whose data is data and node document is the global object’s associated document.

      5. Ranges

      5.1. Introduction to "DOM Ranges"

      A Range object (range) @@ -3159,7 +3159,7 @@

      range still represents the same piece of content. Necessarily, a 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 normalize() method, and the replace data and split algorithms for the hairy +

      See the insert and remove algorithms, the normalize() method, and the replace data and split algorithms for the hairy details.

      5.2. Interface Range

      [Constructor,
      @@ -3211,7 +3211,7 @@ 

      Generally speaking, a boundary point’s offset will be between zero and the boundary point’s node length, inclusive. Algorithms that -modify a tree (in particular the insert, remove, replace data, and split algorithms) also modify ranges associated with that tree.

      +modify a tree (in particular the insert, remove, replace data, and split algorithms) also modify ranges associated with that tree.

      If the two nodes of boundary points (node A, offset A) and (node B, offset B) have the same root, the position of the first relative to the second is either before, equal, or after, @@ -3418,7 +3418,7 @@

      start is end, terminate these steps.
    1. Let original start node, original start offset, original end node, and original end offset be the context object’s start node, start offset, end node, and end offset, respectively. -
    2. If original start node and original end node are the same, and they are a Text, ProcessingInstruction, or Comment node, replace data with node original start node, offset original start offset, count original end offset minus original start offset, and data the empty string, and then +
    3. If original start node and original end node are the same, and they are a Text, ProcessingInstruction, or Comment node, replace data with node original start node, offset original start offset, count original end offset minus original start offset, and data the empty string, and then terminate these steps.
    4. Let nodes to remove be a list of all the nodes that are contained in the context object, in tree order, omitting any node whose parent is also contained in the context object. @@ -3433,11 +3433,11 @@

      index of reference node.

      If reference node’s parent were null, it would be the root of the context object, so would be an inclusive ancestor of original end node, and we could not reach this point.

    -
  • If original start node is a Text, ProcessingInstruction, or Comment node, replace data with node original start node, offset original start offset, count original start node’s length minus original start offset, data the empty string. +
  • If original start node is a Text, ProcessingInstruction, or Comment node, replace data with node original start node, offset original start offset, count original start node’s length minus original start offset, data the empty string.
  • For each node in nodes to remove, in tree order, remove node from its parent. -
  • If original end node is a Text, ProcessingInstruction, or Comment node, replace data with node original end node, offset 0, count original end offset and data the empty string. +
  • If original end node is a Text, ProcessingInstruction, or Comment node, replace data with node original end node, offset 0, count original end offset and data the empty string.
  • Set start and end to (new node, new offset). @@ -3450,9 +3450,9 @@

    Text, ProcessingInstruction, or Comment node:
    1. Let clone be a clone of original start node. -
    2. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original end offset minus original start offset. +
    3. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original end offset minus original start offset.
    4. Append clone to fragment. -
    5. Replace data with node original start node, offset original start offset, count original end offset minus original start offset, and data the empty string. +
    6. Replace data with node original start node, offset original start offset, count original end offset minus original start offset, and data the empty string.
    7. Return fragment.
  • Let common ancestor be original start node. @@ -3488,9 +3488,9 @@

    In this case, first partially contained child is original start node.

    1. Let clone be a clone of original start node. -
    2. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original start node’s length minus original start offset. +
    3. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original start node’s length minus original start offset.
    4. Append clone to fragment. -
    5. Replace data with node original start node, offset original start offset, count original start node’s length minus original start offset, and data the empty string. +
    6. Replace data with node original start node, offset original start offset, count original start node’s length minus original start offset, and data the empty string.
  • Otherwise, if first partially contained child is not @@ -3511,9 +3511,9 @@

    In this case, last partially contained child is original end node.

    1. Let clone be a clone of original end node. -
    2. Set the data of clone to the result of substringing data with node original end node, offset 0, and count original end offset. +
    3. Set the data of clone to the result of substringing data with node original end node, offset 0, and count original end offset.
    4. Append clone to fragment. -
    5. Replace data with node original end node, offset 0, count original end offset, and data the empty string. +
    6. Replace data with node original end node, offset 0, count original end offset, and data the empty string.
  • Otherwise, if last partially contained child is not @@ -3542,7 +3542,7 @@

    Text, ProcessingInstruction, or Comment node:
    1. Let clone be a clone of original start node. -
    2. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original end offset minus original start offset. +
    3. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original end offset minus original start offset.
    4. Append clone to fragment.
    5. Return fragment.
    @@ -3568,7 +3568,7 @@

    In this case, first partially contained child is original start node.

    1. Let clone be a clone of original start node. -
    2. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original start node’s length minus original start offset. +
    3. Set the data of clone to the result of substringing data with node original start node, offset original start offset, and count original start node’s length minus original start offset.
    4. Append clone to fragment.
  • @@ -3595,7 +3595,7 @@

    In this case, last partially contained child is original end node.

    1. Let clone be a clone of original end node. -
    2. Set the data of clone to the result of substringing data with node original end node, offset 0, and count original end offset. +
    3. Set the data of clone to the result of substringing data with node original end node, offset 0, and count original end offset.
    4. Append clone to fragment.
  • @@ -3627,7 +3627,7 @@

    start node if referenceNode is null, and referenceNode’s parent otherwise.

  • Ensure pre-insertion validity of node into parent before referenceNode. -
  • If range’s start node is a Text node, set referenceNode to the result of splitting it with +
  • If range’s start node is a Text node, set referenceNode to the result of splitting it with offset range’s start offset.
  • If node is referenceNode, set referenceNode to its next sibling.
  • @@ -3704,11 +3704,11 @@

    start node is end node, and it is a Text node, return the - substring of that Text node’s data beginning at start offset and ending at end offset. -
  • If start node is a Text node, append to s the substring of that node’s data from the start offset until the end. -
  • Append to s the concatenation, in tree order, of the data of all Text nodes that are contained in + substring of that Text node’s data beginning at start offset and ending at end offset. +
  • If start node is a Text node, append to s the substring of that node’s data from the start offset until the end. +
  • Append to s the concatenation, in tree order, of the data of all Text nodes that are contained in the context object. -
  • If end node is a Text node, append to s the substring of that node’s data from its start until the end offset. +
  • If end node is a Text node, append to s the substring of that node’s data from its start until the end offset.
  • Return s.
    @@ -4427,7 +4427,7 @@

  • dfn for Element, in §4.8 -
  • dfn for NamedNodeMap, in §4.8.1 +
  • dfn for NamedNodeMap, in §4.8.1
  • attributeName, in §4.3.3
  • attributeNamespace, in §4.3.3 @@ -4455,7 +4455,7 @@

    argument for CustomEvent/initCustomEvent(type, bubbles, cancelable, detail), in §3.3
  • BUBBLING_PHASE, in §3.2 -
  • callback, in §4.3.1 +
  • callback, in §4.3.1
  • cancelable
  • Element, in §4.8 @@ -4774,7 +4774,7 @@

  • hasChildNodes(), in §4.4
  • hasFeature(), in §4.5.1 -
  • host, in §4.6 +
  • host, in §4.6
  • host-including inclusive ancestor, in §4.6
  • how, in §5.2
  • HTMLCollection, in §4.2.7.2 @@ -4847,9 +4847,9 @@

    attribute for DOMTokenList, in §7.1
  • limited-quirks mode, in §4.5 -
  • list of elements with class names classNames, in §4.4 -
  • list of elements with local name localName, in §4.4 -
  • list of elements with namespace +
  • list of elements with class names classNames, in §4.4 +
  • list of elements with local name localName, in §4.4 +
  • list of elements with namespace namespace and local name localName, in §4.4
  • live, in §4.2.7
  • live collection, in §4.2.7 @@ -5131,7 +5131,7 @@

    Range(), in §5.2
  • range, in §5.2
  • RangeException, in §8.3 -
  • record queue, in §4.3.1 +
  • record queue, in §4.3.1
  • referenceNode, in §6.1
  • reflect, in §4.8
  • registered observer, in §4.3 @@ -5166,7 +5166,7 @@

    replace, in §4.2.1
  • replace all, in §4.2.1
  • replaceChild(node, child), in §4.4 -
  • replace data, in §4.9 +
  • replace data, in §4.9
  • replaceData(offset, count, data), in §4.9
  • replaceWholeText(), in §8.2
  • replaceWith(nodes...), in §4.2.5 @@ -5234,7 +5234,7 @@

    skip ASCII whitespace, in §2.3
  • sourceRange, in §5.2
  • specified, in §4.8.2 -
  • split a Text node, in §4.10 +
  • split a Text node, in §4.10
  • splitText(offset), in §4.10
  • start, in §5.2
  • startContainer, in §5.2 @@ -5255,7 +5255,7 @@

    dfn for Range, in §5.2
  • dfn for DOMTokenList, in §7.1 -
  • substring data, in §4.9 +
  • substring data, in §4.9
  • substringData(offset, count), in §4.9
  • subtree, in §4.3.1
  • surroundContents(newParent), in §5.2 @@ -5275,7 +5275,7 @@

    argument for MutationObserver/observe(target, options), in §4.3.1
  • attribute for MutationRecord, in §4.3.3
  • argument for Document/createProcessingInstruction(target, data), in §4.5 -
  • dfn for ProcessingInstruction, in §4.11 +
  • dfn for ProcessingInstruction, in §4.11
  • attribute for ProcessingInstruction, in §4.11
  • Text, in §4.10