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/>

           Summary: Invalid return value specified for the pre-instert
           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
, 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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:19 UTC