Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_dom/deno-dom-wasm.ts>DOMTokenList

Browser DOM & HTML parser in Deno
Extremely Popular
Latest
class DOMTokenList
import { DOMTokenList } from "https://deno.land/x/deno_dom@v0.1.46/deno-dom-wasm.ts";

Constructors

new
DOMTokenList(onChange: (className: string) => void, key: CTOR_KEY)

Properties

readonly
length: number
value: string

Methods

add(...elements: Array<string>)
contains(element: string): boolean
entries(): IterableIterator<[number, string]>
forEach(callback: (
value: string,
index: number,
) => void
)
item(index: number): string
keys(): IterableIterator<number>
remove(...elements: Array<string>)
replace(oldToken: string, newToken: string): boolean
supports(): never
toggle(element: string, force?: boolean): boolean
values(): IterableIterator<string>
[Symbol.iterator](): IterableIterator<string>
interface DOMTokenList
import { type DOMTokenList } from "https://deno.land/x/deno_dom@v0.1.46/deno-dom-wasm.ts";

Index Signatures

[index: number]: string