| Index: Source/core/html/HTMLOptionsCollection.cpp
|
| diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp
|
| index ea2c28c4463b5731ab89546460dec77196054fd8..94c808c2cd7f26b5901f716c6fe9bf92a52ce479 100644
|
| --- a/Source/core/html/HTMLOptionsCollection.cpp
|
| +++ b/Source/core/html/HTMLOptionsCollection.cpp
|
| @@ -51,12 +51,12 @@ void HTMLOptionsCollection::add(PassRefPtr<HTMLOptionElement> element, int index
|
| HTMLOptionElement* newOption = element.get();
|
|
|
| if (!newOption) {
|
| - es.throwDOMException(TypeMismatchError);
|
| + es.throwUninformativeAndGenericDOMException(TypeMismatchError);
|
| return;
|
| }
|
|
|
| if (index < -1) {
|
| - es.throwDOMException(IndexSizeError);
|
| + es.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| return;
|
| }
|
|
|
| @@ -124,7 +124,7 @@ bool HTMLOptionsCollection::anonymousIndexedSetter(unsigned index, PassRefPtr<HT
|
| {
|
| HTMLSelectElement* base = toHTMLSelectElement(ownerNode());
|
| if (!value) {
|
| - es.throwDOMException(TypeMismatchError);
|
| + es.throwUninformativeAndGenericDOMException(TypeMismatchError);
|
| return true;
|
| }
|
| base->setOption(index, value.get(), es);
|
|
|