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

DataNode

A node that contains some data.

class DataNode extends Node {
constructor(type: ElementType.Comment | ElementType.Text | ElementType.Directive, data: string);
data: string;
get nodeValue(): string;
set nodeValue(data: string);
}

§Extends

§Constructors

§
@param type

The type of the node

@param data

The content of the data node

§Properties

§
data: string
[src]
§
nodeValue: string
[src]

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