Index: Source/core/html/forms/HiddenInputType.cpp |
diff --git a/Source/core/html/forms/HiddenInputType.cpp b/Source/core/html/forms/HiddenInputType.cpp |
index 5ce1c5d9318d134b82d36a71f3e1a8e5d4ae9c76..7609742da689d49673e371875fc6d7f8838396d3 100644 |
--- a/Source/core/html/forms/HiddenInputType.cpp |
+++ b/Source/core/html/forms/HiddenInputType.cpp |
@@ -64,7 +64,7 @@ FormControlState HiddenInputType::saveFormControlState() const |
void HiddenInputType::restoreFormControlState(const FormControlState& state) |
{ |
- element().setAttribute(valueAttr, state[0]); |
+ element().setAttribute(valueAttr, AtomicString(state[0])); |
} |
bool HiddenInputType::supportsValidation() const |
@@ -94,7 +94,7 @@ bool HiddenInputType::storesValueSeparateFromAttribute() |
void HiddenInputType::setValue(const String& sanitizedValue, bool, TextFieldEventBehavior) |
{ |
- element().setAttribute(valueAttr, sanitizedValue); |
+ element().setAttribute(valueAttr, AtomicString(sanitizedValue)); |
} |
bool HiddenInputType::isHiddenType() const |