jindw/xmldom — pull request #12 by bigeasy (2012-06-10 17:23:09+00:00)
Title: Property linked `insertBefore` with fragments.

Updated `insertBefore` to accept a `DocumentFragment`. Apparently, that branch of logic was not tested. It called the non-existant `Node.firstNode` instead of `Node.firstChild`.

Updated `appendChild` and `insertBefore` to return the inserted `Node` according to the WC3 DOM Level 2.

Set the `nodeType` property of `DocumentFragment` objects.

Created [an example](http://jsfiddle.net/vVKqF/2/) of what to expect when you insert a `DocumentFragment`.