Skip to content

Commit

Permalink
fix: remove validation on start/end tag matching
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Feb 10, 2024
1 parent 420eaf7 commit b95523a
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,11 +702,6 @@ public XmlSerializer endTag(String namespace, String name)
if (checkNamesInterned && namesInterned) {
checkInterning(name);
}
String startTagName = elName[depth];
if ((!namesInterned && !name.equals(startTagName)) || (namesInterned && name != startTagName)) {
throw new IllegalArgumentException("expected element name "
+ printable(elName[depth]) + " and not " + printable(name) + getLocation());
}
if (startTagIncomplete) {
writeNamespaceDeclarations();
out.write(" />"); // space is added to make it easier to work in XHTML!!!
Expand Down

0 comments on commit b95523a

Please sign in to comment.