Element
reexport
class
Element
{
 Â
attribs
:
any
;
 Â
children
:
Array
<
Node
>
;
 Â
endIndex
:
null
|
number
;
 Â
name
:
string
;
 Â
next
:
null
|
Node
;
 Â
parent
:
null
|
NodeWithChildren
;
 Â
prev
:
null
|
Node
;
 Â
startIndex
:
null
|
number
;
 Â
type
:
ElementType
;
 Â
x-attribsNamespace
?
:
Record
<
string
,
string
>
;
 Â
x-attribsPrefix
?
:
Record
<
string
,
string
>
;
 Â
cloneNode
:
<
 Â
 Â
T
extends
Node
<
T
>
 Â
>
(
recursive
?
:
boolean
)
=>
T
;
}
Defined in
@native-html/transient-render-engine
An element within the DOM.
#
Fieldsattribs
#
required
attribs
:
any
;
children
#
required
endIndex
#
required
endIndex
:
null
|
number
;
The end index of the node. Requires withEndIndices
on the handler to be `true.
name
#
required
name
:
string
;
next
#
required
Next sibling
parent
#
required
Parent of the node
prev
#
required
Previous sibling
startIndex
#
required
startIndex
:
null
|
number
;
The start index of the node. Requires withStartIndices
on the handler to be `true.
type
#
required
type
:
ElementType
;
x-attribsNamespace
#
optional
x-attribsNamespace
?
:
Record
<
string
,
string
>
;
x-attribsPrefix
#
optional
x-attribsPrefix
?
:
Record
<
string
,
string
>
;
#
MethodscloneNode
#
required
Clone this node, and optionally its children.
#
Parametersrecursive
Clone child nodes as well.