funcunit
Version:
<!-- @hide title
16 lines (11 loc) • 460 B
JavaScript
import Node from './node';
function DocumentFragment(ownerDocument) {
this.nodeConstructor(11, '#document-fragment', null, ownerDocument);
}
DocumentFragment.prototype._cloneNode = function() {
return this.ownerDocument.createDocumentFragment();
};
DocumentFragment.prototype = Object.create(Node.prototype);
DocumentFragment.prototype.constructor = DocumentFragment;
DocumentFragment.prototype.nodeConstructor = Node;
export default DocumentFragment;