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

x/deno_dom/src/api.ts>NamedNodeMap

Browser DOM & HTML parser in Deno
Very Popular
Go to Latest
class NamedNodeMap
import { NamedNodeMap } from "https://deno.land/x/deno_dom@v0.1.35-alpha-artifacts/src/api.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.35-alpha-artifacts/src/api.ts";

Index Signatures

[index: number]: Attr