We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3ff46 commit a959a2fCopy full SHA for a959a2f
1 file changed
src/main/java/org/htmlunit/cyberneko/HTMLElements.java
@@ -909,7 +909,7 @@ public boolean closes(final short tag) {
909
*/
910
@Override
911
public int hashCode() {
912
- return name.hashCode();
+ return lowercaseName.hashCode();
913
}
914
915
/**
@@ -918,7 +918,7 @@ public int hashCode() {
918
919
public boolean equals(final Object o) {
920
if (o instanceof Element e) {
921
- return lowercaseName.equals(e.name) || name.equals(e.name);
+ return lowercaseName.equals(e.lowercaseName);
922
923
return false;
924
0 commit comments