getAttribute method

String? getAttribute(
  1. String qualifiedName
)

The getAttribute() method of the Element interface returns the value of a specified attribute on the element.

If the given attribute does not exist, the value returned will either be null or "" (the empty string); see Non-existing attributes for details.

If you need to inspect the Attr node's properties, you can use the Element.getAttributeNode method instead.

Implementation

external String? getAttribute(String qualifiedName);