@@ -303,19 +303,19 @@ impl VdomInnerExclusive {
303 listeners: new_listeners,
303 listeners: new_listeners,
304 attributes: new_attributes,
304 attributes: new_attributes,
305 children: new_children,
305 children: new_children,
306− namespace: _,
306+ namespace: new_namespace,
308 Node::Element(ElementNode {
308 Node::Element(ElementNode {
309 tag_name: old_tag_name,
309 tag_name: old_tag_name,
310 listeners: old_listeners,
310 listeners: old_listeners,
311 attributes: old_attributes,
311 attributes: old_attributes,
312 children: old_children,
312 children: old_children,
313− namespace: _,
313+ namespace: old_namespace,
316 debug!(" updating an element");
316 debug!(" updating an element");
317− if new_tag_name != old_tag_name {
317+ if new_tag_name != old_tag_name || new_namespace != old_namespace {
318− debug!(" different tag names; creating new element and replacing old element");
318+ debug!(" different tag names or namespaces; creating new element and replacing old element");
319 self.create(registry, new);
319 self.create(registry, new);
320 self.change_list.emit_replace_with();
320 self.change_list.emit_replace_with();