getAttributeValue(name, defaultValue) {
    const attribute = this.getAttribute(name);
    return attribute ? attribute.value : (defaultValue || null);
  }
Gets the value of the first attribute of the tag with a specified name.
If not found, returns an optional default value.

@param {string} name
@param {string=} defaultValue
@return {?string}