DocumentFragment
package js.html
extends Node › EventTarget
extended by ShadowRoot
Available on js
The DocumentFragment
interface represents a minimal document object that has no parent. It is used as a lightweight version of Document
that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made.
Documentation DocumentFragment by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
new()
Throws:
null |
DOMError |
---|
Variables
read onlychildElementCount:Int
read onlychildren:HTMLCollection
read onlyfirstElementChild:Element
read onlylastElementChild:Element
Methods
append(nodes:Rest<Node>):Void
append(nodes:Rest<String>):Void
Throws:
null |
DOMError |
---|
getElementById(elementId:String):Element
Returns the first Element
node within the DocumentFragment`, in document order, that matches the specified ID.
prepend(nodes:Rest<Node>):Void
prepend(nodes:Rest<String>):Void
Throws:
null |
DOMError |
---|
querySelector(selectors:String):Element
Returns the first Element
node within the DocumentFragment
, in document order, that matches the specified selectors.
Throws:
null |
DOMError |
---|
querySelectorAll(selectors:String):NodeList
Returns a NodeList
of all the Element
nodes within the DocumentFragment
that match the specified selectors.
Throws:
null |
DOMError |
---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DocumentFragment.html