Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 1e3f930f92c435c6f88ee970b56b4320ec430bda..97211dd196d0307a5f370aab21343b5de460ed1d 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -486,7 +486,7 @@ void HTMLSelectElement::setOption(unsigned index, HTMLOptionElement* option, Exc |
void HTMLSelectElement::setLength(unsigned newLen, ExceptionState& exceptionState) |
{ |
if (newLen > maxSelectItems) |
- newLen = maxSelectItems; |
+ return; |
int diff = length() - newLen; |
if (diff < 0) { // Add dummy elements. |