/src/main/java/org/htmlunit/html/HtmlElement.java
return true;
return false;
public boolean isValid() { return !isRequiredSupported() || ATTRIBUTE_NOT_DEFINED == getAttributeDirect(ATTRIBUTE_REQUIRED) || !getAttributeDirect(VALUE_ATTRIBUTE).isEmpty(); } protected boolean isRequiredSupported() { <extra_id_0> } public boolean isRequired() { return isRequiredSupported() && hasAttribute(ATTRIBUTE_REQUIRED); } public boolean isOptional() { return isRequiredSupported() && !hasAttribute(ATTRIBUTE_REQUIRED);