This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
Good catch, thanks. https://bitbucket.org/ms2ger/dom-core/changeset/1f02e4a8b80c https://dvcs.w3.org/hg/domcore/rev/1f02e4a8b80c