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