attributes property - Element class - dart:html library (original) (raw)

Map<String, String> getattributes

All attributes on this element.

Any modifications to the attribute map will automatically be applied to this element.

This only includes attributes which are not in a namespace (such as 'xlink:href'), additional attributes can be accessed viagetNamespacedAttributes.

Implementation

Map<String, String> get attributes => new _ElementAttributeMap(this);

setattributes (Map<String, String> value)

Implementation

set attributes(Map<String, String> value) {
  Map<String, String> attributes = this.attributes;
  attributes.clear();
  for (String key in value.keys) {
    attributes[key] = value[key]!;
  }
}