| Index: Source/core/html/HTMLOptionsCollection.cpp
|
| diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp
|
| index d1abb1d3c23f1a98665710f3e1f94e168b1186e2..867b7bf70734d9f37f2a30dba2f0e70a5a26757a 100644
|
| --- a/Source/core/html/HTMLOptionsCollection.cpp
|
| +++ b/Source/core/html/HTMLOptionsCollection.cpp
|
| @@ -93,7 +93,7 @@ void HTMLOptionsCollection::add(PassRefPtr<HTMLOptionElement> element, int index
|
| if (index == -1 || unsigned(index) >= length())
|
| select.add(newOption, 0, exceptionState);
|
| else
|
| - select.add(newOption, toHTMLOptionElement(item(index)), exceptionState);
|
| + select.addBeforeOptionAtIndex(newOption, index, exceptionState);
|
|
|
| ASSERT(!exceptionState.hadException());
|
| }
|
|
|