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:
parent
935465a11b
commit
dd4df0a5ef
3 changed files with 55 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue