From 42d2485c4f84fb210452ca53e07503229716b147 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 11 Sep 2018 17:34:40 +0200 Subject: [PATCH] Editorial: a removed node's root is itself Also address some issues Bikeshed found (incorrect linking and the use of "optional" in a non-normative context). Fixes #691. --- dom.bs | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/dom.bs b/dom.bs index bd8bfb874..cd4abffeb 100644 --- a/dom.bs +++ b/dom.bs @@ -495,7 +495,7 @@ the empty list.

event = new Event(type [, eventInitDict])
Returns a new event whose {{Event/type}} attribute value is set to - type. The optional eventInitDict argument + type. The eventInitDict argument allows for setting the {{Event/bubbles}} and {{Event/cancelable}} attributes via object members of the same name. @@ -793,7 +793,7 @@ dictionary CustomEventInit : EventInit {
event = new CustomEvent(type [, eventInitDict])
Works analogously to the constructor for {{Event}} except - that the optional eventInitDict argument now + that the eventInitDict argument now allows for setting the {{CustomEvent/detail}} attribute too. @@ -2646,7 +2646,7 @@ with an optional suppress observers flag, run these steps:
  1. Run assign slotables for a tree with parent's root. -

  2. Run assign slotables for a tree with node's root. +

  3. Run assign slotables for a tree with node.

  • Run the removing steps with node and parent. @@ -9071,7 +9071,7 @@ must return the context object's filter.

    If beforeNode is false, then set it to true.

  • -
  • Let result be the result of filtering node within +

  • Let result be the result of filtering node within iterator.

  • If result is {{NodeFilter/FILTER_ACCEPT}}, then break. @@ -9154,7 +9154,7 @@ these steps:

    1. Set node to node's parent. -

    2. If node is non-null and filtering node within the +

    3. If node is non-null and filtering node within the context object returns {{NodeFilter/FILTER_ACCEPT}}, then set the context object's current to node and return node.

    @@ -9175,7 +9175,7 @@ these steps:

    While node is non-null:

      -
    1. Let result be the result of filtering node within +

    2. Let result be the result of filtering node within walker.

    3. If result is {{NodeFilter/FILTER_ACCEPT}}, then set walker's @@ -9243,7 +9243,7 @@ and type, run these steps:

      1. Set node to sibling. -

      2. Let result be the result of filtering node within +

      3. Let result be the result of filtering node within walker.

      4. If result is {{NodeFilter/FILTER_ACCEPT}}, then set walker's @@ -9263,8 +9263,8 @@ and type, run these steps:

      5. If node is null or walker's root, then return null. -

      6. If the return value of filtering node within walker - is {{NodeFilter/FILTER_ACCEPT}}, then return null. +

      7. If the return value of filtering node within walker is + {{NodeFilter/FILTER_ACCEPT}}, then return null.

    @@ -9292,8 +9292,8 @@ these steps:
    1. Set node to sibling. -

    2. Let result be the result of filtering node within - the context object. +

    3. Let result be the result of filtering node within the + context object.

    4. While result is not {{NodeFilter/FILTER_REJECT}} and node has a @@ -9302,8 +9302,8 @@ these steps:

      1. Set node to node's last child. -

      2. Set result to the result of filtering node - within the context object. +

      3. Set result to the result of filtering node within + the context object.

    5. If result is {{NodeFilter/FILTER_ACCEPT}}, then set the @@ -9318,7 +9318,7 @@ these steps:

    6. Set node to node's parent. -

    7. If the return value of filtering node within the +

    8. If the return value of filtering node within the context object is {{NodeFilter/FILTER_ACCEPT}}, then set the context object's current to node and return node.

    @@ -9345,8 +9345,8 @@ steps:
    1. Set node to its first child. -

    2. Set result to the result of filtering node within - the context object. +

    3. Set result to the result of filtering node within the + context object.

    4. If result is {{NodeFilter/FILTER_ACCEPT}}, then set the context object's current to node and return @@ -9371,8 +9371,8 @@ steps:

    5. Set temporary to temporary's parent.

    -
  • Set result to the result of filtering node within - the context object. +

  • Set result to the result of filtering node within the + context object.

  • If result is {{NodeFilter/FILTER_ACCEPT}}, then set the context object's current to node and return node. @@ -9993,6 +9993,7 @@ Ondřej Žára, Peter Sharpe, Philip Jägenstedt, Philippe Le Hégaret, +Pierre-Marie Dartus, Ra'Shaun Stovall (Snuggs), Rafael Weinstein, Richard Bradshaw,