Skip to main content

Element

reexport
type Element<
> = any
Defined in domhandler

Fields​

attribs​

attribs: type __type<
> = any;

children​

children: Array<ChildNode>;

endIndex​

endIndex: number | null;

name​

name: string;

namespace​

namespace?: string;

next​

next: ChildNode | null;

parent​

parent: ParentNode | null;

prev​

prev: ChildNode | null;

sourceCodeLocation​

sourceCodeLocation?: TagSourceCodeLocation | null;

startIndex​

startIndex: number | null;

type​

type: Script
  | Style
  | Tag;

x-attribsNamespace​

x-attribsNamespace?: Record<string, string>;

x-attribsPrefix​

x-attribsPrefix?: Record<string, string>;

Methods​

cloneNode​

function cloneNode(
  this: T,
  recursive?: boolean
) : T

Parameters​

  • recursive