/src/main/java/org/htmlunit/html/HtmlForm.java
for ( final HtmlElement element : getElements ( ) ) { if ( element.getTagName ( ) .equals ( lowerCaseTagName ) ) { final String attValue = element.getAttribute ( attributeName ) ; if ( attValue.equals ( attributeValue ) ) { list.add ( ( E ) element ) ; }
private <E extends HtmlElement> List<E> getFormElementsByAttribute( final String elementName, final String attributeName, final String attributeValue) { final List<E> list = new ArrayList<>(); final String lowerCaseTagName = elementName.toLowerCase(Locale.ROOT); <extra_id_0> } } } return list; } public List<HtmlElement> getElements() {