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

DomUtils.hasAttrib

Checks whether an element has an attribute.

function hasAttrib(elem: Element, name: string): boolean;
§
hasAttrib(elem: Element, name: string): boolean
[src]

§Parameters

§

Element to check.

§
name: string
[src]

Attribute name to look for.

§Return Type

§
boolean
[src]

Returns whether elem has the attribute name.