From 53511b8edddd7943c5769a2dc1703cac66a1c95f Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 4 Jan 2018 19:23:42 +0100 Subject: [PATCH] Use Infra's concatenation definition Fixes #555. --- dom.bs | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/dom.bs b/dom.bs index 399d56290..75d95836b 100644 --- a/dom.bs +++ b/dom.bs @@ -219,8 +219,7 @@ object is its first following

The ordered set serializer takes a -set and returns the concatenation of the strings in set, separated from each -other by U+0020, if set is non-empty, and the empty string otherwise. +set and returns the concatenation of set using U+0020 SPACE.

Selectors

@@ -4030,7 +4029,7 @@ following, switching on context object:
{{DocumentFragment}}
{{Element}} -
The concatenation of data of all +
The concatenation of data of all the {{Text}} node descendants of the context object, in @@ -4097,8 +4096,8 @@ steps for each descendant exclusive Text node no
  • If length is zero, then remove node and continue with the next exclusive Text node, if any. -
  • Let data be the concatenation of the data of - node's contiguous exclusive Text nodes (excluding itself), in +
  • Let data be the concatenation of the data + of node's contiguous exclusive Text nodes (excluding itself), in tree order.
  • Replace data with node node, offset length, count 0, and data @@ -7176,8 +7175,8 @@ if any, and its contiguous exclusive Text nodes, and no contiguous exclusive Text nodes, avoiding any duplicates.

    The child text content of a node -node is the concatenation of the data of all the {{Text}} node -children of node, in tree order. +node is the concatenation of the data of all +the {{Text}} node children of node, in tree order.

    This and other specifications may define child text content change steps for nodes. @@ -7277,9 +7276,9 @@ To split a {{Text

    The splitText(offset) method, when invoked, must split context object with offset offset. -

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

    The wholeText attribute's getter must return the +concatenation of the data of the +contiguous Text nodes of the context object, in tree order. @@ -8894,11 +8893,9 @@ these steps: 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. +
  • Append the concatenation of the data of all {{Text}} + nodes that are contained in the context object, in tree order, to + s.
  • If end node is a {{Text}} node, append to @@ -10085,6 +10082,7 @@ Manish Goregaokar, Manish Tripathi, Marcos Caceres, Mark Miller, +Martijn van der Ven, Mats Palmgren, Mounir Lamouri, Michaelâ„¢ Smith,