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

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 UTC