Element

HTML element.

Extends

Properties

children

children: ElementContent[]

Children of element.

Overrides

Parent.children

Defined in

node_modules/@types/hast/index.d.ts:221


content?

optional content: Root

When the tagName field is 'template', a content field can be present.

Defined in

node_modules/@types/hast/index.d.ts:226


data?

optional data: ElementData

Data associated with the element.

Overrides

Parent.data

Defined in

node_modules/@types/hast/index.d.ts:230


position?

optional position: Position

Position of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

Inherited from

Parent.position

Defined in

node_modules/@types/unist/index.d.ts:103


properties

properties: Properties

Info associated with the element.

Defined in

node_modules/@types/hast/index.d.ts:217


tagName

tagName: string

Tag name (such as 'body') of the element.

Defined in

node_modules/@types/hast/index.d.ts:213


type

type: "element"

Node type of elements.

Overrides

Parent.type

Defined in

node_modules/@types/hast/index.d.ts:209