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

x/lume/deps/dom.ts>NamedNodeMap

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class NamedNodeMap
import { NamedNodeMap } from "https://deno.land/x/lume@v1.18.1/deps/dom.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/lume@v1.18.1/deps/dom.ts";

Index Signatures

[index: number]: Attr