Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 77585bfd9bca30d165811d9dd4236d94547a6849..93cda13f271150082690150171752a6626741f88 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -1570,4 +1570,14 @@ void HTMLSelectElement::finishParsingChildren() |
updateListItemSelectedStates(); |
} |
+bool HTMLSelectElement::anonymousIndexedSetter(unsigned index, PassRefPtr<HTMLOptionElement> value, ExceptionCode& ec) |
+{ |
+ if (!value) { |
+ ec = TYPE_MISMATCH_ERR; |
+ return false; |
+ } |
+ setOption(index, value.get(), ec); |
+ return true; |
+} |
+ |
} // namespace |