the tag name of this element
Object of initial attribute name/value pairs
Element containing reference to underlying HTMLElement
implementation.
The element is proxied in this class to:
avoid clashes with HTMLElement
implementation details
make it easy to swap out for alternative implementations
Object containing the element's attributes
The child nodes of this element
Set the child nodes of this element
The first child of this element
Set the innerHTML of underlying element
Element's node type
The parent of this element
The parent of this element
The tag name of the original element. This is used internally by node-html-parser and needs to br proxied here so a ServerElement can be used everywhere node-html-parser's HTMLElement is
The element's tag name
Get the text content of underlying element
Set the text content of underlying element
Append a child to the underlying element implementation
Element to append
Return the current value of names attribute
Attribute name
Retrieve the underlying element
Does this element have an attribute set with named key
Attribute name
Query underlying element for single match
CSS3 selector
Query underlying element for all matches
Remove names attribute
Attribute name
Sets the value for the name attribute
Attribute name
Value to set
Sets all attributes at once
Value to set
Update the underlying element to new element
Render this element to an HTML string
Promise resolves when all pending updates have been processed
registry of tag names to Wafer component definitions
Generated using TypeDoc
Provides an interface compatible with the browser
HTMLElement
- at least in so much as it provides the capabilities Wafer requires. The actual implementation is proxied to node-html-parser implementation ofHTMLElement
. It should be relatively straight forward to swap this implementation out for an alternative one if required.