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

x/evt/lib/types/index.ts>dom.Attr

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.Attr
implements Node
import { type dom } from "https://deno.land/x/evt@v2.4.19/lib/types/index.ts";
const { Attr } = dom;

A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.

Properties

readonly
localName: string
readonly
name: string
readonly
namespaceURI: string | null
readonly
ownerElement: Element | null
readonly
prefix: string | null
readonly
specified: boolean
value: string