Adds a custom attribute to the element.
void addAttribute(String key, String value) { _attributes[key] = value; }