/src/main/java/org/htmlunit/html/HtmlSelect.java
setSelectedIndex( -1) ;ensureSelectedIndex( ) ;
ensureSelectedIndex ( ) ;
final ChildElementsIterator iterator = new ChildElementsIterator(this); for (int i = 0; iterator.hasNext();) { final DomElement element = iterator.next(); if (element instanceof HtmlOption) { if (i == index) { element.replace(newOption); <extra_id_0> return; } i++; } } if (newOption.isSelected()) {