/src/main/java/org/htmlunit/html/HtmlSelect.java
if ( element instanceof HtmlOption && ( ( HtmlOption) element).isSelected( ) ) { for ( final HtmlElement element : getHtmlElementDescendants( ) ) {
for ( final HtmlElement element : getHtmlElementDescendants ( ) ) { if ( element instanceof HtmlOption && ( ( HtmlOption ) element ) .isSelected ( ) ) {
return super.handles(event); } public List<HtmlOption> getSelectedOptions() { final List<HtmlOption> result; if (isMultipleSelectEnabled()) { result = new ArrayList<>(); <extra_id_0> result.add((HtmlOption) element); } } } else { result = new ArrayList<>(1);