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 {
children: Node[];
get firstChild(): Node | null;
get lastChild(): Node | null;
get childNodes(): Node[];
set childNodes(children: Node[]);
}

§Extends

§Constructors

§
@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.