<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28061</bug_id>
          
          <creation_ts>2015-02-20 05:24:23 +0000</creation_ts>
          <short_desc>Description of before/after/replace only mentions single node</short_desc>
          <delta_ts>2015-05-08 09:13:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Josh Matthews">josh</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118044</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Matthews">josh</who>
    <bug_when>2015-02-20 05:24:23 +0000</bug_when>
    <thetext>https://dom.spec.whatwg.org/#interface-childnode

[[
The before(nodes) method must run these steps:

    If the context object does not have a parent, terminate these steps.
    Run the mutation method macro.

    Pre-insert node into the context object&apos;s parent before the context object. 

The after(nodes) method must run these steps:

    If the context object does not have a parent, terminate these steps.
    Run the mutation method macro.

    Pre-insert node into the context object&apos;s parent before the context object&apos;s next sibling. 

The replaceWith(nodes) method must run these steps:

    If the context object does not have a parent, terminate these steps.
    Run the mutation method macro.

    Replace the context object with node within the context object&apos;s parent. 
]]

These steps only refer to a single node, not the collection of nodes and/or DOMString values that can be passed to each method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118045</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-02-20 06:54:28 +0000</bug_when>
    <thetext>Josh, the mutation method macro takes care of that, no? Having said that, these methods need some fixes to their algorithms. In particular when passed the context object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118046</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Matthews">josh</who>
    <bug_when>2015-02-20 08:40:01 +0000</bug_when>
    <thetext>Oh, my mistake; I skimmed over step 2 every time while reading it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120231</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-05-08 09:13:24 +0000</bug_when>
    <thetext>See https://github.com/whatwg/dom/issues/32 for some work that is needed here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>