git » sdk » commit 8434bbc

xml: prefix is special

author Stephen Paul Weber
2026-04-23 02:28:39 UTC
committer Stephen Paul Weber
2026-04-23 02:28:39 UTC
parent cadbe01545d5a6106b18b2cce228d0e34d38fc85

xml: prefix is special

borogove/streams/XmppJsStream.hx +1 -1

diff --git a/borogove/streams/XmppJsStream.hx b/borogove/streams/XmppJsStream.hx
index 72526d7..4cbc248 100644
--- a/borogove/streams/XmppJsStream.hx
+++ b/borogove/streams/XmppJsStream.hx
@@ -398,7 +398,7 @@ class XmppJsStream extends GenericStream {
 		var attrs: haxe.DynamicAccess<String> = {};
 		for (attr => val in el.attrs ?? attrs) {
 			final parts = attr.split(":");
-			if (parts.length == 1) {
+			if (parts.length == 1 || parts[0] == "xml") {
 				attrs.set(attr, val);
 			}
 			if (parts.length == 2 && parts[0] != "xmlns") {