Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_dom/deno-dom-wasm-noinit.ts>NamedNodeMap

Browser DOM & HTML parser in Deno
Extremely Popular
Go to Latest
class NamedNodeMap
import { NamedNodeMap } from "https://deno.land/x/deno_dom@v0.1.36-alpha/deno-dom-wasm-noinit.ts";

Constructors

new
NamedNodeMap(
ownerElement: Element,
onAttrNodeChange: (attr: string, value: string | null) => void,
key: CTOR_KEY,
)

Properties

readonly
length

Methods

getNamedItem(attribute: string): Attr | null
item(index: number): Attr | null
removeNamedItem(attribute: string): Attr
setNamedItem(attrNode: Attr)
[getNamedNodeMapValueSym](attribute: string): string | undefined
[removeNamedNodeMapAttrSym](attribute: string)

Called when an attribute is removed from an element

[setNamedNodeMapValueSym](
attribute: string,
value: string,
bubble?,
)
[Symbol.iterator](): Generator<Attr>
interface NamedNodeMap
import { type NamedNodeMap } from "https://deno.land/x/deno_dom@v0.1.36-alpha/deno-dom-wasm-noinit.ts";

Index Signatures

[index: number]: Attr