Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

NodeWithChildren

A Node that can have children.

class NodeWithChildren extends Node {
constructor(type:
| ElementType.Root
| ElementType.CDATA
| ElementType.Script
| ElementType.Style
| ElementType.Tag
, children: Node[]);
children: Node[];
get firstChild(): Node | null;
get lastChild(): Node | null;
get childNodes(): Node[];
set childNodes(children: Node[]);
}

§Extends

§Constructors

§
new NodeWithChildren(type: ElementType.Root | ElementType.CDATA | ElementType.Script | ElementType.Style | ElementType.Tag, children: Node[])
[src]
@param type

Type of the node.

@param children

Children of the node. Only certain node types can have children.

§Properties

§
children: Node[]
[src]
§
firstChild: Node | null readonly
[src]

First child of the node.

§
lastChild: Node | null readonly
[src]

Last child of the node.

§
childNodes: Node[]
[src]

Same as {@link children}. DOM spec-compatible alias.