refactor: return copy of DOM attributes in Dart
This alligns with JS-version behaviour
This commit is contained in:
parent
ce29862e2f
commit
d35fdfcd40
|
@ -151,8 +151,9 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
|||
|
||||
String tagName(Element element) => element.tagName;
|
||||
|
||||
Map<String, String> attributeMap(Element element) =>
|
||||
element.attributes;
|
||||
Map<String, String> attributeMap(Element element) {
|
||||
return new Map.from(element.attributes);
|
||||
}
|
||||
|
||||
String getAttribute(Element element, String attribute) =>
|
||||
element.getAttribute(attribute);
|
||||
|
|
Loading…
Reference in New Issue