W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2012

[Bug 16424] New: Invalid return value specified for the pre-instert algorithm

From: <bugzilla@jessica.w3.org>
Date: Sun, 18 Mar 2012 17:14:30 +0000
To: www-dom@w3.org
Message-ID: <bug-16424-4009@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16424

           Summary: Invalid return value specified for the pre-instert
                    algorithm
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DOM
        AssignedTo: annevk@opera.com
        ReportedBy: manish.tripathi.777@gmail.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org


According to
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node-pre-insert
, step 8, pre-insert algorithm returns a "child", but in the context of that
particular alrogitm, a "child" is a reference node, NOT the inserted node.

Therefore, step 8 should read: "8. Return <i>node</i>."

This is critical, because the value returned by pre-insert algoritm is passed
on to and returned by the Node.appendChild(node) and Node.insertBefore(node,
child) method.

If implemented as is, Node.appendChild(node) will ALWAYS return null, whereas
it must return the inserted node.

-- 
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 Sunday, 18 March 2012 17:14:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:09 GMT