Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index 51c4fd0ef83fef4602c59a246282e813829fc202..560e92d42f6b2f25293f5a96b4098f8782438ac4 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -727,7 +727,6 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr |
m_hasNonEmptyList = !value.isEmpty(); |
if (m_hasNonEmptyList) { |
resetListAttributeTargetObserver(); |
- listAttributeTargetChanged(); |
} |
UseCounter::count(document(), UseCounter::ListAttribute); |
} else if (name == webkitdirectoryAttr) { |
@@ -1540,6 +1539,7 @@ void HTMLInputElement::setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<Lis |
void HTMLInputElement::resetListAttributeTargetObserver() |
{ |
+ listAttributeTargetChanged(); |
if (inDocument()) |
setListAttributeTargetObserver(ListAttributeTargetObserver::create(fastGetAttribute(listAttr), this)); |
else |