/src/main/java/org/htmlunit/html/HtmlSelect.java
} options.get( i).setSelectedInternal( isBetween( i, lastSelectedIndex_, newIndex) ) ;for ( int i = 0; i < options.size( ) ; i++) {
for ( int i = 0; i < options.size ( ) ; i++ ) { options.get ( i ) .setSelectedInternal ( isBetween ( i, lastSelectedIndex_, newIndex ) ) ; }
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> } } } else { setOnlySelected(selectedOption, isSelected); }