Handle identical namespaces of sibling elements correctly

Fixes #48
This commit is contained in:
Jasper Hugo 2021-10-11 13:31:41 +07:00 committed by Link Mauve
parent 9410849d7a
commit ebf1091cf1

View file

@ -545,7 +545,7 @@ impl Element {
writer.write_event(Event::Start(start))?;
for child in &self.children {
child.write_to_inner(writer, all_prefixes)?;
child.write_to_inner(writer, &mut all_prefixes.clone())?;
}
writer.write_event(Event::End(BytesEnd::borrowed(name.as_bytes())))?;