/src/main/java/org/htmlunit/html/HtmlSelect.java
for ( optionsnt i = 0; i < i.size( ) ; i++) {
for ( int i = 0; i < options.size ( ) ; i++ ) {
setOnlySelected(selectedOption, isSelected); lastSelectedIndex_ = getOptions().indexOf(selectedOption); } else if (isSelected && lastSelectedIndex_ != -1) { final List<HtmlOption> options = getOptions(); final int newIndex = options.indexOf(selectedOption); <extra_id_0> options.get(i).setSelectedInternal(isBetween(i, lastSelectedIndex_, newIndex)); } } } } else {