<?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>17706</bug_id>
          
          <creation_ts>2012-07-06 05:13:10 +0000</creation_ts>
          <short_desc>Node.replaceChild(node, child) doesn&apos;t check that child is among node&apos;s children</short_desc>
          <delta_ts>2012-07-06 05:15:52 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Alex Vincent">ajvincent</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>69670</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Vincent">ajvincent</who>
    <bug_when>2012-07-06 05:13:10 +0000</bug_when>
    <thetext>DOM4 Editor&apos;s Draft states:
To replace a child with node within a parent, run these steps: 
...
Remove child from its parent with the suppress observers flag set. 

The problem is child&apos;s parent may not be the same parent as the insertion parent.  The word &quot;its&quot; in this last sentence makes that possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69671</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Vincent">ajvincent</who>
    <bug_when>2012-07-06 05:15:52 +0000</bug_when>
    <thetext>Sorry, folks, I was reading a different part of my code.  This is covered by step 1 in the replaceChild algorithm:

If child&apos;s parent is not parent, throw a &quot;NotFoundError&quot; exception and terminate these steps.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>