HTML DOM Attributes isId Attribute

Definition and Usage

isId attribute anymore. It was supported in Chrome, Firefox, and Safari.

No browser supports isId attribute.

isId The attribute always returns undefined.

Alternative solution:

Get the name of the attribute:

let aName = element.attributes[0].name;

Try It Yourself

Instance

Is the first attribute 'id'?

const isid = element.attributes[0].isId;

Try It Yourself

Syntax

attribute.isId

Return Value

undefined