diff --git a/src/lib/annotations/annotations.html b/src/lib/annotations/annotations.html
index fe03ea6531..8b23976cfe 100644
--- a/src/lib/annotations/annotations.html
+++ b/src/lib/annotations/annotations.html
@@ -313,7 +313,7 @@
// `value` attribute if it previously had a value (can't
// unconditionally set '' before removing since attributes with `$`
// can't be set using setAttribute)
- if (node.localName == 'input' && name == 'value') {
+ if (node.localName === 'input' && origName === 'value') {
node.setAttribute(origName, '');
}
// Remove annotation
diff --git a/test/unit/bind-elements.html b/test/unit/bind-elements.html
index 1c5b36c4c5..1ff374171d 100644
--- a/test/unit/bind-elements.html
+++ b/test/unit/bind-elements.html
@@ -434,20 +434,26 @@
© {{myText}} © {{myText}}