W3cubDocs

/Haxe JavaScript

DocumentFragment

package js.html

extends NodeEventTarget

extended by ShadowRoot

@:native("DocumentFragment") Available on js

The DocumentFragment interface represents a minimal document object that has no parent. It is used as a light-weight version of Document to store well-formed or potentially non-well-formed fragments of XML.

Documentation DocumentFragment by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Constructor

new ()

Throws:

null DOMError

Variables

read only childElementCount:Int

read only children:HTMLCollection

read only firstElementChild:Element

read only lastElementChild:Element

Methods

getElementById (elementId:String):Element

Returns the first Element node within the DocumentFragment`, in document order, that matches the specified ID.

querySelector (selectors:String):Element

Throws:

null DOMError

querySelectorAll (selectors:String):NodeList

Throws:

null DOMError

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DocumentFragment.html