Utils.create
A module containing every documented DOM creational method
residing on the Document
interface from the DOM
4 specification. For more, see the DOM 4 specification section
5.4 (Interface Document).
Utils.create.element
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that wraps createElement
,
which in turn creates an element
node-like object
based upon the tag name provided.
Return value: Object || null
Utils.create.elementNS
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that wraps createElementNamespace
,
which in turn creates a namespaced element
node-like object
based upon the tag name provided.
Return value: Object || null
Utils.create.text
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that wraps createTextNode
,
which in turn creates a text
node-like object
based upon the text provided.
Return value: Object || null
Utils.create.processingInstruction
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that wraps processingInstruction
,
which in turn creates a processing instruction
node-like object
based upon the target and text provided.
Return value: Object || null
Utils.create.comment
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that wraps createComment
,
which in turn creates a comment
node-like object
based upon the text provided.
Return value: Object || null
Utils.create.documentFragment
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that wraps createDocumentFragment
,
which in turn creates a document fragment
node-like object.
Return value: Object || null