diff --git a/client/html/src/ElementWrappingImplementation.dart b/client/html/src/ElementWrappingImplementation.dart
index 2670aba8f34..1df3ed0df4b 100644
--- a/client/html/src/ElementWrappingImplementation.dart
+++ b/client/html/src/ElementWrappingImplementation.dart
@@ -283,7 +283,7 @@ class ElementAttributeMap implements Map {
void clear() {
final attributes = _element.attributes;
- for (int i = len = attributes.length - 1; i >= 0; i--) {
+ for (int i = attributes.length - 1; i >= 0; i--) {
_element.removeAttribute(attributes.item(i).name);
}
}