/src/main/java/org/htmlunit/html/HtmlMonthInput.java
final YearMonth maxDate = YearMonth.parse( getMax( ) , FORMATTER_) ; final YearMonth dateValue = YearMonth.parse( getRawValue( ) , FORMATTER_) ;try {
try { final YearMonth dateValue = YearMonth.parse ( getRawValue ( ) , FORMATTER_ ) ; final YearMonth maxDate = YearMonth.parse ( getMax ( ) , FORMATTER_ ) ;
} } return true; } private boolean isMaxValid() { if (hasFeature(HTMLINPUT_TYPE_MONTH_SUPPORTED) && !getMax().isEmpty()) { <extra_id_0> return maxDate.equals(dateValue) || maxDate.isAfter(dateValue); } catch (final DateTimeParseException e) { } } return true;