1 <p>"Option 1" and
"Option 2" should be in correct order.
</p>
4 <option>Option
2</option>
8 testRunner
.dumpAsText();
10 var option1
= document
.getElementsByTagName("option")[0];
11 var option2
= document
.getElementsByTagName("option")[1];
13 option1
.text
= "Option 1";
16 if (option1
.index
!= 0)
17 document
.write("<p>FAIL: An attempt to set HTMLOptionElement.index was not ignored.");
19 if (window
.testRunner
) {
20 document
.write(document
.getElementsByTagName("option")[0].text
+ "<br>");
21 document
.write(document
.getElementsByTagName("option")[1].text
+ "<br>");
24 document
.write("<p>FAIL: Exception on setting an index: " + ex
+ "</p>");