setAttribute method

  1. @override
void setAttribute(
  1. String qualifiedName,
  2. String value
)
override

Implementation

@override
void setAttribute(String qualifiedName, String value) {
  super.setAttribute(qualifiedName, value);
  // Reflect setAttribute to properties.
  switch (qualifiedName) {
    case 'href': href = attributeToProperty<String>(value); break;
    case 'target': target = attributeToProperty<String>(value); break;
    case 'rel': rel = attributeToProperty<String>(value); break;
    case 'type': type = attributeToProperty<String>(value); break;
    case 'protocol': protocol = attributeToProperty<String>(value); break;
    case 'host': host = attributeToProperty<String>(value); break;
    case 'hostname': hostname = attributeToProperty<String>(value); break;
    case 'port': port = attributeToProperty<String>(value); break;
    case 'pathname': pathname = attributeToProperty<String>(value); break;
    case 'search': search = attributeToProperty<String>(value); break;
    case 'hash': hash = attributeToProperty<String>(value); break;
  }
}