1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-08 22:21:08 +01:00

Improve how XmlStringBuilder handles enclosing XML environments

to avoid emitting unnecessary attributes like xmlns.

Also add a test for MediaElement that checks that <uri/> does not
carry a xmlns attribute.
This commit is contained in:
Florian Schmaus 2019-09-04 09:48:02 +02:00
parent 935465a11b
commit dd4df0a5ef
3 changed files with 55 additions and 5 deletions

View file

@ -87,7 +87,7 @@ public class MediaElement implements FormFieldChildElement {
.optAttribute("width", width)
.rightAngleBracket();
xml.append(uris, xmlEnvironment);
xml.append(uris);
xml.closeElement(this);
return xml;