svgdom
Version:
Straightforward DOM implementation for SVG, HTML and XML
16 lines (14 loc) • 545 B
JavaScript
import { Node } from './Node.js'
import { mixin } from '../utils/objectCreationUtils.js'
import { elementAccess } from './mixins/elementAccess.js'
import { ParentNode } from './mixins/ParentNode.js'
import { NonElementParentNode } from './mixins/NonElementParentNode.js'
export class DocumentFragment extends Node {
constructor (name, props) {
super(name, props)
this.nodeType = Node.DOCUMENT_FRAGMENT_NODE
}
}
mixin(elementAccess, DocumentFragment)
mixin(ParentNode, DocumentFragment)
mixin(NonElementParentNode, DocumentFragment)