Pathologic was missing because of a .git folder inside.
[yaffs-website] / node_modules / min-document / dom-fragment.js
1 var DOMElement = require("./dom-element.js")
2
3 module.exports = DocumentFragment
4
5 function DocumentFragment(owner) {
6     if (!(this instanceof DocumentFragment)) {
7         return new DocumentFragment()
8     }
9
10     this.childNodes = []
11     this.parentNode = null
12     this.ownerDocument = owner || null
13 }
14
15 DocumentFragment.prototype.type = "DocumentFragment"
16 DocumentFragment.prototype.nodeType = 11
17 DocumentFragment.prototype.nodeName = "#document-fragment"
18
19 DocumentFragment.prototype.appendChild  = DOMElement.prototype.appendChild
20 DocumentFragment.prototype.replaceChild = DOMElement.prototype.replaceChild
21 DocumentFragment.prototype.removeChild  = DOMElement.prototype.removeChild
22
23 DocumentFragment.prototype.toString =
24     function _DocumentFragment_toString() {
25         return this.childNodes.map(function (node) {
26             return String(node)
27         }).join("")
28     }