Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index f27d41b97bae466941982ed9f3d627ea69b289a1..a1490387b4ce5181cf4900006dc551422916f136 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -390,7 +390,7 @@ void HTMLSelectElement::setMultiple(bool multiple) |
{ |
bool oldMultiple = this->multiple(); |
int oldSelectedIndex = selectedIndex(); |
- setAttribute(multipleAttr, multiple ? "" : 0); |
+ setAttribute(multipleAttr, multiple ? emptyAtom : nullAtom); |
// Restore selectedIndex after changing the multiple flag to preserve |
// selection as single-line and multi-line has different defaults. |