W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2012

[Bug 17706] New: Node.replaceChild(node, child) doesn't check that child is among node's children

From: <bugzilla@jessica.w3.org>
Date: Fri, 06 Jul 2012 05:13:10 +0000
To: www-dom@w3.org
Message-ID: <bug-17706-4009@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17706

           Summary: Node.replaceChild(node, child) doesn't check that
                    child is among node's children
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
        AssignedTo: annevk@annevk.nl
        ReportedBy: ajvincent@gmail.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org


DOM4 Editor'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's parent may not be the same parent as the insertion
parent.  The word "its" in this last sentence makes that possible.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 6 July 2012 05:13:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 6 July 2012 05:13:16 GMT