@tempots/dom
ElNS() function
Creates a renderable function that represents an element in the DOM with a specified namespace.
Signature:
ElNS: (tagName: string, namespace: string, ...children: TNode[]) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
tagName |
string |
The name of the HTML tag for the element. |
namespace |
string |
The namespace of the element. |
children |
TNode[] |
The child nodes of the element. |
Returns: Renderable
A renderable function that creates and appends the element to the DOM.