Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 4, 2021
1 parent 8db7a30 commit f8e6738
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,12 @@ public String getAttribute(String name) {
return null;
}
}

if ("disabled".equals(lowerName)) {
return trueOrNull(!isEnabled());
if (element instanceof DisabledElement) {
return trueOrNull(((DisabledElement) element).isDisabled());
}
return "true";
}

if ("multiple".equals(lowerName) && element instanceof HtmlSelect) {
Expand Down Expand Up @@ -401,7 +405,9 @@ public String getDomProperty(String name) {
}

if ("disabled".equals(lowerName)) {
return "true";
if (element instanceof DisabledElement) {
return trueOrNull(((DisabledElement) element).isDisabled());
}
}

if (ATTRIBUTE_VALUE_EMPTY == value) {
Expand Down

0 comments on commit f8e6738

Please sign in to comment.