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

x/yxz/typing/lib.dom.ts>Attr

Deno Standard Extensions
Go to Latest
interface Attr
implements Node
import { type Attr } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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
ownerDocument: Document
readonly
ownerElement: Element | null
readonly
prefix: string | null
readonly
specified: boolean
value: string