mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-02 15:04:24 +02:00
fix: remove validation on start/end tag matching (#3513)
This commit is contained in:
parent
93e100e0fc
commit
d892f3daf9
@ -702,11 +702,6 @@ public class MXSerializer implements XmlSerializer {
|
|||||||
if (checkNamesInterned && namesInterned) {
|
if (checkNamesInterned && namesInterned) {
|
||||||
checkInterning(name);
|
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) {
|
if (startTagIncomplete) {
|
||||||
writeNamespaceDeclarations();
|
writeNamespaceDeclarations();
|
||||||
out.write(" />"); // space is added to make it easier to work in XHTML!!!
|
out.write(" />"); // space is added to make it easier to work in XHTML!!!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user