Element

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

HTML element.

Extends

Properties

children

children: ElementContent[]

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

Children of element.

Overrides

Parent.children


content?

optional content?: Root

Defined in: node_modules/.bun/@types+hast@3.0.4/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/.bun/@types+hast@3.0.4/node_modules/@types/hast/index.d.ts:230

Data associated with the element.

Overrides

Parent.data


position?

optional position?: Position

Defined in: node_modules/.bun/@types+unist@3.0.3/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/.bun/@types+hast@3.0.4/node_modules/@types/hast/index.d.ts:217

Info associated with the element.


tagName

tagName: string

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

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


type

type: "element"

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

Node type of elements.

Overrides

Parent.type