DOM element
component tree
attributes
child index
See HDOMImplementation interface for further details.
hdom config options
DOM element
component tree
child index
See HDOMImplementation interface for further details.
hdom config options
DOM element
component tree
child index
Removes event listener (possibly with options).
DOM element
event name (w/o on
prefix)
-
Sets a single attribute on given element. If attrib name is NOT an event name (prefix: "on") and its value is a function, it is called with given attribs
object (usually the full attrib object passed to setAttribs) and the function's return value is used as the actual attrib value.
Special rules apply for certain attributes:
If the given (or computed) attrib value is false
or undefined
the attrib is removed from the element.
DOM element
attribute name
attribute value
object of all attribs
Adds event listener (possibly with options).
DOM element
event name (w/o on
prefix)
-
Updates an element's value
property. For form elements it too ensures the edit cursor retains its position.
DOM element
value
Generated using TypeDoc
Creates a new DOM element of type
tag
with optionalattribs
. Ifparent
is notnull
, the new element will be inserted as child at giveninsert
index. Ifinsert
is missing, the element will be appended to theparent
's list of children. Returns new DOM node.If
tag
is a known SVG element name, the new element will be created with the proper SVG XML namespace.