fix(dom): preserve namespaced attribute qualified names

This commit is contained in:
SGavrl committed 2026-08-01 16:00:52 +00:00
1 parent 1e305135e3
commit 76e5280c32
5 files changed
+96 -27

No files matched your search

+5 -2
View File
@@ -99,8 +99,11 @@ impl DomTree {
buf.push_str(tag);
for attr in attrs {
buf.push(' ');
let attr_name = attr.name.local.as_ref();
buf.push_str(attr_name);
if let Some(prefix) = &attr.name.prefix {
buf.push_str(prefix);
buf.push(':');
}
buf.push_str(attr.name.local.as_ref());
buf.push_str("=\"");
escape_attr(&attr.value, buf);
buf.push('"');