Element

Defined in: node_modules/@types/hast/index.d.ts:205

HTML element.

Extends

Properties

children

children: ElementContent[]

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

Children of element.

Overrides

Parent.children


content?

optional content: Root

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

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


data?

optional data: ElementData

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

Data associated with the element.

Overrides

Parent.data


position?

optional position: Position

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

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


properties

properties: Properties

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

Info associated with the element.


tagName

tagName: string

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

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


type

type: "element"

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

Node type of elements.

Overrides

Parent.type