---
title: "ProcessingInstruction | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface ProcessingInstruction

The **`ProcessingInstruction`** interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)

interface ProcessingInstruction {  
    [ATTRIBUTE\_NODE](#attribute_node): 2;  
    [baseURI](#baseuri): string;  
    [CDATA\_SECTION\_NODE](#cdata_section_node): 4;  
    [childNodes](#childnodes): [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/)<[ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/)\>;  
    [COMMENT\_NODE](#comment_node): 8;  
    [data](#data): string;  
    [DOCUMENT\_FRAGMENT\_NODE](#document_fragment_node): 11;  
    [DOCUMENT\_NODE](#document_node): 9;  
    [DOCUMENT\_POSITION\_CONTAINED\_BY](#document_position_contained_by): 16;  
    [DOCUMENT\_POSITION\_CONTAINS](#document_position_contains): 8;  
    [DOCUMENT\_POSITION\_DISCONNECTED](#document_position_disconnected): 1;  
    [DOCUMENT\_POSITION\_FOLLOWING](#document_position_following): 4;  
    [DOCUMENT\_POSITION\_IMPLEMENTATION\_SPECIFIC](#document_position_implementation_specific): 32;  
    [DOCUMENT\_POSITION\_PRECEDING](#document_position_preceding): 2;  
    [DOCUMENT\_TYPE\_NODE](#document_type_node): 10;  
    [ELEMENT\_NODE](#element_node): 1;  
    [ENTITY\_NODE](#entity_node): 6;  
    [ENTITY\_REFERENCE\_NODE](#entity_reference_node): 5;  
    [firstChild](#firstchild): [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null;  
    [isConnected](#isconnected): boolean;  
    [lastChild](#lastchild): [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null;  
    [length](#length): number;  
    [nextElementSibling](#nextelementsibling): [Element](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Element/) | null;  
    [nextSibling](#nextsibling): [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null;  
    [nodeName](#nodename): string;  
    [nodeType](#nodetype): number;  
    [nodeValue](#nodevalue): string | null;  
    [NOTATION\_NODE](#notation_node): 12;  
    [ownerDocument](#ownerdocument): [Document](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Document/);  
    [parentElement](#parentelement): [HTMLElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLElement/) | null;  
    [parentNode](#parentnode): [ParentNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ParentNode/) | null;  
    [previousElementSibling](#previouselementsibling): [Element](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Element/) | null;  
    [previousSibling](#previoussibling): [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null;  
    [PROCESSING\_INSTRUCTION\_NODE](#processing_instruction_node): 7;  
    [sheet](#sheet): [CSSStyleSheet](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CSSStyleSheet/) | null;  
    [target](#target): string;  
    [TEXT\_NODE](#text_node): 3;  
    get [textContent](#textcontenttextcontent)(): string;  
    set [textContent](#textcontenttextcontent-1)(value: string | null): void;  
    [addEventListener](#addeventlistener-1)(  
        type: string,  
        callback: [EventListenerOrEventListenerObject](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.EventListenerOrEventListenerObject/) | null,  
        options?: boolean | AddEventListenerOptions,  
    ): void;  
    [after](#after-1)(...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]): void;  
    [appendChild](#appendchild-1)<[T](#appendchildt) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(node: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#appendchildt)): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#appendchildt);  
    [appendData](#appenddata-1)(data: string): void;  
    [before](#before-1)(...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]): void;  
    [cloneNode](#clonenode-1)(subtree?: boolean): [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/);  
    [compareDocumentPosition](#comparedocumentposition-1)(other: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)): number;  
    [contains](#contains-1)(other: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): boolean;  
    [deleteData](#deletedata-1)(offset: number, count: number): void;  
    [dispatchEvent](#dispatchevent-1)(event: Event): boolean;  
    [getRootNode](#getrootnode-1)(options?: [GetRootNodeOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GetRootNodeOptions/)): [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/);  
    [hasChildNodes](#haschildnodes-1)(): boolean;  
    [insertBefore](#insertbefore-1)<[T](#insertbeforet) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(node: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#insertbeforet), child: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#insertbeforet);  
    [insertData](#insertdata-1)(offset: number, data: string): void;  
    [isDefaultNamespace](#isdefaultnamespace-1)(namespace: string | null): boolean;  
    [isEqualNode](#isequalnode-1)(otherNode: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): boolean;  
    [isSameNode](#issamenode-1)(otherNode: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): boolean;  
    [lookupNamespaceURI](#lookupnamespaceuri-1)(prefix: string | null): string | null;  
    [lookupPrefix](#lookupprefix-1)(namespace: string | null): string | null;  
    [normalize](#normalize-1)(): void;  
    [remove](#remove-1)(): void;  
    [removeChild](#removechild-1)<[T](#removechildt) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(child: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#removechildt)): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#removechildt);  
    [removeEventListener](#removeeventlistener-1)(  
        type: string,  
        callback: [EventListenerOrEventListenerObject](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.EventListenerOrEventListenerObject/) | null,  
        options?: boolean | EventListenerOptions,  
    ): void;  
    [replaceChild](#replacechild-1)<[T](#replacechildt) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(node: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/), child: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#replacechildt)): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#replacechildt);  
    [replaceData](#replacedata-1)(offset: number, count: number, data: string): void;  
    [replaceWith](#replacewith-1)(...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]): void;  
    [substringData](#substringdata-1)(offset: number, count: number): string;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.ProcessingInstruction))

-   [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/)
-   [LinkStyle](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.LinkStyle/)
    -   ProcessingInstruction

##### Index

### Properties[](#properties)

[ATTRIBUTE\_NODE](#attribute_node) [baseURI](#baseuri) [CDATA\_SECTION\_NODE](#cdata_section_node) [childNodes](#childnodes) [COMMENT\_NODE](#comment_node) [data](#data) [DOCUMENT\_FRAGMENT\_NODE](#document_fragment_node) [DOCUMENT\_NODE](#document_node) [DOCUMENT\_POSITION\_CONTAINED\_BY](#document_position_contained_by) [DOCUMENT\_POSITION\_CONTAINS](#document_position_contains) [DOCUMENT\_POSITION\_DISCONNECTED](#document_position_disconnected) [DOCUMENT\_POSITION\_FOLLOWING](#document_position_following) [DOCUMENT\_POSITION\_IMPLEMENTATION\_SPECIFIC](#document_position_implementation_specific) [DOCUMENT\_POSITION\_PRECEDING](#document_position_preceding) [DOCUMENT\_TYPE\_NODE](#document_type_node) [ELEMENT\_NODE](#element_node) [ENTITY\_NODE](#entity_node) [ENTITY\_REFERENCE\_NODE](#entity_reference_node) [firstChild](#firstchild) [isConnected](#isconnected) [lastChild](#lastchild) [length](#length) [nextElementSibling](#nextelementsibling) [nextSibling](#nextsibling) [nodeName](#nodename) [nodeType](#nodetype) [nodeValue](#nodevalue) [NOTATION\_NODE](#notation_node) [ownerDocument](#ownerdocument) [parentElement](#parentelement) [parentNode](#parentnode) [previousElementSibling](#previouselementsibling) [previousSibling](#previoussibling) [PROCESSING\_INSTRUCTION\_NODE](#processing_instruction_node) [sheet](#sheet) [target](#target) [TEXT\_NODE](#text_node)

### Accessors[](#accessors)

[textContent](#textcontent)

### Methods[](#methods)

[addEventListener](#addeventlistener) [after](#after) [appendChild](#appendchild) [appendData](#appenddata) [before](#before) [cloneNode](#clonenode) [compareDocumentPosition](#comparedocumentposition) [contains](#contains) [deleteData](#deletedata) [dispatchEvent](#dispatchevent) [getRootNode](#getrootnode) [hasChildNodes](#haschildnodes) [insertBefore](#insertbefore) [insertData](#insertdata) [isDefaultNamespace](#isdefaultnamespace) [isEqualNode](#isequalnode) [isSameNode](#issamenode) [lookupNamespaceURI](#lookupnamespaceuri) [lookupPrefix](#lookupprefix) [normalize](#normalize) [remove](#remove) [removeChild](#removechild) [removeEventListener](#removeeventlistener) [replaceChild](#replacechild) [replaceData](#replacedata) [replaceWith](#replacewith) [substringData](#substringdata)

## Properties[](#properties-1)

### `Readonly`ATTRIBUTE\_NODE[](#attribute_node)

ATTRIBUTE\_NODE: 2

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[ATTRIBUTE\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#attribute_node)

### `Readonly`baseURI[](#baseuri)

baseURI: string

The read-only **`baseURI`** property of the Node interface returns the absolute base URL of the document containing the node.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[baseURI](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#baseuri)

### `Readonly`CDATA\_SECTION\_NODE[](#cdata_section_node)

CDATA\_SECTION\_NODE: 4

node is a CDATASection node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[CDATA\_SECTION\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#cdata_section_node)

### `Readonly`childNodes[](#childnodes)

childNodes: [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/)<[ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/)\>

The read-only **`childNodes`** property of the Node interface returns a live NodeList of child nodes of the given element where the first child node is assigned index 0. Child nodes include elements, text and comments.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[childNodes](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#childnodes)

### `Readonly`COMMENT\_NODE[](#comment_node)

COMMENT\_NODE: 8

node is a Comment node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[COMMENT\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#comment_node)

### data[](#data)

data: string

The **`data`** property of the CharacterData interface represent the value of the current object's data.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[data](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#data)

### `Readonly`DOCUMENT\_FRAGMENT\_NODE[](#document_fragment_node)

DOCUMENT\_FRAGMENT\_NODE: 11

node is a DocumentFragment node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_FRAGMENT\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_fragment_node)

### `Readonly`DOCUMENT\_NODE[](#document_node)

DOCUMENT\_NODE: 9

node is a document.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_node)

### `Readonly`DOCUMENT\_POSITION\_CONTAINED\_BY[](#document_position_contained_by)

DOCUMENT\_POSITION\_CONTAINED\_BY: 16

Set when other is a descendant of node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_POSITION\_CONTAINED\_BY](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_position_contained_by)

### `Readonly`DOCUMENT\_POSITION\_CONTAINS[](#document_position_contains)

DOCUMENT\_POSITION\_CONTAINS: 8

Set when other is an ancestor of node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_POSITION\_CONTAINS](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_position_contains)

### `Readonly`DOCUMENT\_POSITION\_DISCONNECTED[](#document_position_disconnected)

DOCUMENT\_POSITION\_DISCONNECTED: 1

Set when node and other are not in the same tree.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_POSITION\_DISCONNECTED](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_position_disconnected)

### `Readonly`DOCUMENT\_POSITION\_FOLLOWING[](#document_position_following)

DOCUMENT\_POSITION\_FOLLOWING: 4

Set when other is following node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_POSITION\_FOLLOWING](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_position_following)

### `Readonly`DOCUMENT\_POSITION\_IMPLEMENTATION\_SPECIFIC[](#document_position_implementation_specific)

DOCUMENT\_POSITION\_IMPLEMENTATION\_SPECIFIC: 32

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_POSITION\_IMPLEMENTATION\_SPECIFIC](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_position_implementation_specific)

### `Readonly`DOCUMENT\_POSITION\_PRECEDING[](#document_position_preceding)

DOCUMENT\_POSITION\_PRECEDING: 2

Set when other is preceding node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_POSITION\_PRECEDING](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_position_preceding)

### `Readonly`DOCUMENT\_TYPE\_NODE[](#document_type_node)

DOCUMENT\_TYPE\_NODE: 10

node is a doctype.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[DOCUMENT\_TYPE\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#document_type_node)

### `Readonly`ELEMENT\_NODE[](#element_node)

ELEMENT\_NODE: 1

node is an element.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[ELEMENT\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#element_node)

### `Readonly`ENTITY\_NODE[](#entity_node)

ENTITY\_NODE: 6

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[ENTITY\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#entity_node)

### `Readonly`ENTITY\_REFERENCE\_NODE[](#entity_reference_node)

ENTITY\_REFERENCE\_NODE: 5

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[ENTITY\_REFERENCE\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#entity_reference_node)

### `Readonly`firstChild[](#firstchild)

firstChild: [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null

The read-only **`firstChild`** property of the Node interface returns the node's first child in the tree, or null if the node has no children.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[firstChild](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#firstchild)

### `Readonly`isConnected[](#isconnected)

isConnected: boolean

The read-only **`isConnected`** property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[isConnected](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#isconnected)

### `Readonly`lastChild[](#lastchild)

lastChild: [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null

The read-only **`lastChild`** property of the Node interface returns the last child of the node, or null if there are no child nodes.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[lastChild](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#lastchild)

### `Readonly`length[](#length)

length: number

The read-only **`CharacterData.length`** property returns the number of characters in the contained data, as a positive integer.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[length](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#length)

### `Readonly`nextElementSibling[](#nextelementsibling)

nextElementSibling: [Element](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Element/) | null

Returns the first following sibling that is an element, and null otherwise.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[nextElementSibling](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#nextelementsibling)

### `Readonly`nextSibling[](#nextsibling)

nextSibling: [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null

The read-only **`nextSibling`** property of the Node interface returns the node immediately following the specified one in their parent's childNodes, or returns null if the specified node is the last child in the parent element.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[nextSibling](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#nextsibling)

### `Readonly`nodeName[](#nodename)

nodeName: string

The read-only **`nodeName`** property of Node returns the name of the current node as a string.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[nodeName](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#nodename)

### `Readonly`nodeType[](#nodetype)

nodeType: number

The read-only **`nodeType`** property of a Node interface is an integer that identifies what the node is. It distinguishes different kinds of nodes from each other, such as elements, text, and comments.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[nodeType](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#nodetype)

### nodeValue[](#nodevalue)

nodeValue: string | null

The **`nodeValue`** property of the Node interface returns or sets the value of the current node.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[nodeValue](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#nodevalue)

### `Readonly`NOTATION\_NODE[](#notation_node)

NOTATION\_NODE: 12

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[NOTATION\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#notation_node)

### `Readonly`ownerDocument[](#ownerdocument)

ownerDocument: [Document](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Document/)

The read-only **`ownerDocument`** property of the Node interface returns the top-level document object of the node.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[ownerDocument](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#ownerdocument)

### `Readonly`parentElement[](#parentelement)

parentElement: [HTMLElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLElement/) | null

The read-only **`parentElement`** property of Node interface returns the DOM node's parent Element, or null if the node either has no parent, or its parent isn't a DOM Element. Node.parentNode on the other hand returns any kind of parent, regardless of its type.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[parentElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#parentelement)

### `Readonly`parentNode[](#parentnode)

parentNode: [ParentNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ParentNode/) | null

The read-only **`parentNode`** property of the Node interface returns the parent of the specified node in the DOM tree.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[parentNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#parentnode)

### `Readonly`previousElementSibling[](#previouselementsibling)

previousElementSibling: [Element](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Element/) | null

Returns the first preceding sibling that is an element, and null otherwise.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[previousElementSibling](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#previouselementsibling)

### `Readonly`previousSibling[](#previoussibling)

previousSibling: [ChildNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ChildNode/) | null

The read-only **`previousSibling`** property of the Node interface returns the node immediately preceding the specified one in its parent's childNodes list, or null if the specified node is the first in that list.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[previousSibling](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#previoussibling)

### `Readonly`PROCESSING\_INSTRUCTION\_NODE[](#processing_instruction_node)

PROCESSING\_INSTRUCTION\_NODE: 7

node is a ProcessingInstruction node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[PROCESSING\_INSTRUCTION\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#processing_instruction_node)

### `Readonly`sheet[](#sheet)

sheet: [CSSStyleSheet](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CSSStyleSheet/) | null

[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet)

Inherited from [LinkStyle](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.LinkStyle/).[sheet](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.LinkStyle/#sheet)

### `Readonly`target[](#target)

target: string

The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target)

### `Readonly`TEXT\_NODE[](#text_node)

TEXT\_NODE: 3

node is a Text node.

Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[TEXT\_NODE](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#text_node)

## Accessors[](#accessors-1)

### textContent[](#textcontent)

-   get textContent(): string
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent)
    
    #### Returns string
    
    Inherited from CharacterData.textContent
    
-   set textContent(value: string | null): void
    
    The **`textContent`** property of the Node interface represents the text content of the node and its descendants.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent)
    
    #### Parameters
    
    -   value: string | null
    
    #### Returns void
    
    Inherited from CharacterData.textContent
    

## Methods[](#methods-1)

### addEventListener[](#addeventlistener)

-   addEventListener(  
        type: string,  
        callback: [EventListenerOrEventListenerObject](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.EventListenerOrEventListenerObject/) | null,  
        options?: boolean | AddEventListenerOptions,  
    ): void[](#addeventlistener-1)
    
    The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
    
    #### Parameters
    
    -   type: string
    -   callback: [EventListenerOrEventListenerObject](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.EventListenerOrEventListenerObject/) | null
    -   `Optional`options: boolean | AddEventListenerOptions
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[addEventListener](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#addeventlistener)
    

### after[](#after)

-   after(...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]): void[](#after-1)
    
    Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
    
    Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after)
    
    #### Parameters
    
    -   ...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[after](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#after)
    

### appendChild[](#appendchild)

-   appendChild<[T](#appendchildt) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(node: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#appendchildt)): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#appendchildt)[](#appendchild-1)
    
    The **`appendChild()`** method of the Node interface adds a node to the end of the list of children of a specified parent node.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild)
    
    #### Type Parameters
    
    -   T extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    
    #### Parameters
    
    -   node: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#appendchildt)
    
    #### Returns [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#appendchildt)
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[appendChild](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#appendchild)
    

### appendData[](#appenddata)

-   appendData(data: string): void[](#appenddata-1)
    
    The **`appendData()`** method of the CharacterData interface adds the provided data to the end of the node's current data.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData)
    
    #### Parameters
    
    -   data: string
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[appendData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#appenddata)
    

### before[](#before)

-   before(...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]): void[](#before-1)
    
    Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
    
    Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before)
    
    #### Parameters
    
    -   ...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[before](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#before)
    

### cloneNode[](#clonenode)

-   cloneNode(subtree?: boolean): [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)[](#clonenode-1)
    
    The **`cloneNode()`** method of the Node interface returns a duplicate of the node on which this method was called. Its parameter controls if the subtree contained in the node is also cloned or not.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
    
    #### Parameters
    
    -   `Optional`subtree: boolean
    
    #### Returns [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[cloneNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#clonenode)
    

### compareDocumentPosition[](#comparedocumentposition)

-   compareDocumentPosition(other: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)): number[](#comparedocumentposition-1)
    
    The **`compareDocumentPosition()`** method of the Node interface reports the position of its argument node relative to the node on which it is called.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)
    
    #### Parameters
    
    -   other: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    
    #### Returns number
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[compareDocumentPosition](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#comparedocumentposition)
    

### contains[](#contains)

-   contains(other: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): boolean[](#contains-1)
    
    The **`contains()`** method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (childNodes), one of the children's direct children, and so on.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)
    
    #### Parameters
    
    -   other: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null
    
    #### Returns boolean
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[contains](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#contains)
    

### deleteData[](#deletedata)

-   deleteData(offset: number, count: number): void[](#deletedata-1)
    
    The **`deleteData()`** method of the CharacterData interface removes all or part of the data from this CharacterData node.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData)
    
    #### Parameters
    
    -   offset: number
    -   count: number
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[deleteData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#deletedata)
    

### dispatchEvent[](#dispatchevent)

-   dispatchEvent(event: Event): boolean[](#dispatchevent-1)
    
    The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
    
    #### Parameters
    
    -   event: Event
    
    #### Returns boolean
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[dispatchEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#dispatchevent)
    

### getRootNode[](#getrootnode)

-   getRootNode(options?: [GetRootNodeOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GetRootNodeOptions/)): [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)[](#getrootnode-1)
    
    The **`getRootNode()`** method of the Node interface returns the context object's root, which optionally includes the shadow root if it is available.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)
    
    #### Parameters
    
    -   `Optional`options: [GetRootNodeOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GetRootNodeOptions/)
    
    #### Returns [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[getRootNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#getrootnode)
    

### hasChildNodes[](#haschildnodes)

-   hasChildNodes(): boolean[](#haschildnodes-1)
    
    The **`hasChildNodes()`** method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)
    
    #### Returns boolean
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[hasChildNodes](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#haschildnodes)
    

### insertBefore[](#insertbefore)

-   insertBefore<[T](#insertbeforet) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(node: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#insertbeforet), child: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#insertbeforet)[](#insertbefore-1)
    
    The **`insertBefore()`** method of the Node interface inserts a node before a reference node as a child of a specified parent node.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore)
    
    #### Type Parameters
    
    -   T extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    
    #### Parameters
    
    -   node: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#insertbeforet)
    -   child: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null
    
    #### Returns [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#insertbeforet)
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[insertBefore](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#insertbefore)
    

### insertData[](#insertdata)

-   insertData(offset: number, data: string): void[](#insertdata-1)
    
    The **`insertData()`** method of the CharacterData interface inserts the provided data into this CharacterData node's current data, at the provided offset from the start of the existing data. The provided data is spliced into the existing data.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData)
    
    #### Parameters
    
    -   offset: number
    -   data: string
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[insertData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#insertdata)
    

### isDefaultNamespace[](#isdefaultnamespace)

-   isDefaultNamespace(namespace: string | null): boolean[](#isdefaultnamespace-1)
    
    The **`isDefaultNamespace()`** method of the Node interface accepts a namespace URI as an argument. It returns a boolean value that is true if the namespace is the default namespace on the given node and false if not. The default namespace can be retrieved with Node.lookupNamespaceURI() by passing null as the argument.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace)
    
    #### Parameters
    
    -   namespace: string | null
    
    #### Returns boolean
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[isDefaultNamespace](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#isdefaultnamespace)
    

### isEqualNode[](#isequalnode)

-   isEqualNode(otherNode: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): boolean[](#isequalnode-1)
    
    The **`isEqualNode()`** method of the Node interface tests whether two nodes are equal. Two nodes are equal when they have the same type, defining characteristics (for elements, this would be their ID, number of children, and so forth), its attributes match, and so on. The specific set of data points that must match varies depending on the types of the nodes.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)
    
    #### Parameters
    
    -   otherNode: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null
    
    #### Returns boolean
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[isEqualNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#isequalnode)
    

### isSameNode[](#issamenode)

-   isSameNode(otherNode: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null): boolean[](#issamenode-1)
    
    The **`isSameNode()`** method of the Node interface is a legacy alias the for the === strict equality operator. That is, it tests whether two nodes are the same (in other words, whether they reference the same object).
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode)
    
    #### Parameters
    
    -   otherNode: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/) | null
    
    #### Returns boolean
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[isSameNode](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#issamenode)
    

### lookupNamespaceURI[](#lookupnamespaceuri)

-   lookupNamespaceURI(prefix: string | null): string | null[](#lookupnamespaceuri-1)
    
    The **`lookupNamespaceURI()`** method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and null if not). This method's existence allows Node objects to be passed as a namespace resolver to XPathEvaluator.createExpression() and XPathEvaluator.evaluate().
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI)
    
    #### Parameters
    
    -   prefix: string | null
    
    #### Returns string | null
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[lookupNamespaceURI](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#lookupnamespaceuri)
    

### lookupPrefix[](#lookupprefix)

-   lookupPrefix(namespace: string | null): string | null[](#lookupprefix-1)
    
    The **`lookupPrefix()`** method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and null if not. When multiple prefixes are possible, the first prefix is returned.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix)
    
    #### Parameters
    
    -   namespace: string | null
    
    #### Returns string | null
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[lookupPrefix](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#lookupprefix)
    

### normalize[](#normalize)

-   normalize(): void[](#normalize-1)
    
    The **`normalize()`** method of the Node interface puts the specified node and all of its sub-tree into a normalized form. In a normalized sub-tree, no text nodes in the sub-tree are empty and there are no adjacent text nodes.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[normalize](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#normalize)
    

### remove[](#remove)

-   remove(): void[](#remove-1)
    
    Removes node.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[remove](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#remove)
    

### removeChild[](#removechild)

-   removeChild<[T](#removechildt) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(child: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#removechildt)): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#removechildt)[](#removechild-1)
    
    The **`removeChild()`** method of the Node interface removes a child node from the DOM and returns the removed node.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild)
    
    #### Type Parameters
    
    -   T extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    
    #### Parameters
    
    -   child: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#removechildt)
    
    #### Returns [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#removechildt)
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[removeChild](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#removechild)
    

### removeEventListener[](#removeeventlistener)

-   removeEventListener(  
        type: string,  
        callback: [EventListenerOrEventListenerObject](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.EventListenerOrEventListenerObject/) | null,  
        options?: boolean | EventListenerOptions,  
    ): void[](#removeeventlistener-1)
    
    The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
    
    #### Parameters
    
    -   type: string
    -   callback: [EventListenerOrEventListenerObject](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.EventListenerOrEventListenerObject/) | null
    -   `Optional`options: boolean | EventListenerOptions
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[removeEventListener](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#removeeventlistener)
    

### replaceChild[](#replacechild)

-   replaceChild<[T](#replacechildt) extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)\>(node: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/), child: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#replacechildt)): [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#replacechildt)[](#replacechild-1)
    
    The **`replaceChild()`** method of the Node interface replaces a child node within the given (parent) node.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild)
    
    #### Type Parameters
    
    -   T extends [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    
    #### Parameters
    
    -   node: [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/)
    -   child: [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#replacechildt)
    
    #### Returns [T](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLCanvasElement/#replacechildt)
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[replaceChild](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#replacechild)
    

### replaceData[](#replacedata)

-   replaceData(offset: number, count: number, data: string): void[](#replacedata-1)
    
    The **`replaceData()`** method of the CharacterData interface removes a certain number of characters of the existing text in a given CharacterData node and replaces those characters with the text provided.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData)
    
    #### Parameters
    
    -   offset: number
    -   count: number
    -   data: string
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[replaceData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#replacedata)
    

### replaceWith[](#replacewith)

-   replaceWith(...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]): void[](#replacewith-1)
    
    Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
    
    Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
    
    #### Parameters
    
    -   ...nodes: (string | [Node](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Node/))\[\]
    
    #### Returns void
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[replaceWith](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#replacewith)
    

### substringData[](#substringdata)

-   substringData(offset: number, count: number): string[](#substringdata-1)
    
    The **`substringData()`** method of the CharacterData interface returns a portion of the existing data, starting at the specified index and extending for a given number of characters afterwards.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
    
    #### Parameters
    
    -   offset: number
    -   count: number
    
    #### Returns string
    
    Inherited from [CharacterData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/).[substringData](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.CharacterData/#substringdata)
