Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DomUtils.getAttributeValue

Gets an attribute from an element.

function getAttributeValue(elem: Element, name: string): string | undefined;
§
getAttributeValue(elem: Element, name: string): string | undefined
[src]

§Parameters

§

Element to check.

§
name: string
[src]

Attribute name to retrieve.

§Return Type

§
string | undefined
[src]

The element's attribute value, or undefined.