From f2b2a221ddc9022988fc6ab7a73fce7a0d0d0071 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sun, 13 Dec 2015 21:10:50 +0100 Subject: [PATCH] Close #128: fix a typo in the replace a node algorithm --- dom.bs | 4 ++-- dom.html | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dom.bs b/dom.bs index 406436ad9..7d261d8ef 100644 --- a/dom.bs +++ b/dom.bs @@ -1623,8 +1623,8 @@ steps: the suppress observers flag set.
  • Queue a mutation record of "childList" for target - parent with addedNodes nodes, removedNodes removedNodes - child, nextSibling reference child, and previousSibling + parent with addedNodes nodes, removedNodes removedNodes, + nextSibling reference child, and previousSibling previousSibling.
  • Return child. diff --git a/dom.html b/dom.html index 4e27ff701..303dde404 100644 --- a/dom.html +++ b/dom.html @@ -991,7 +991,8 @@

    Let nodes be node’s children if node is a DocumentFragment node, and a list containing solely node otherwise.
  • Insert node into parent before reference child with the suppress observers flag set. -
  • Queue a mutation record of "childList" for target parent with addedNodes nodes, removedNodes removedNodes child, nextSibling reference child, and previousSibling previousSibling. +
  • Queue a mutation record of "childList" for target parent with addedNodes nodes, removedNodes removedNodes, + nextSibling reference child, and previousSibling previousSibling.
  • Return child.

    To replace all with a node within a parent, run these steps: