on master help sign in
Fix small issue with macro
d01204aRyan Levick
src/builder.rs+1−1
@@ -394,7 +394,7 @@ macro_rules! builder_constructors {
394 bumpalo::collections::Vec<'a, Attribute<'a>>,
394 bumpalo::collections::Vec<'a, Attribute<'a>>,
395 bumpalo::collections::Vec<'a, Node<'a>>,
395 bumpalo::collections::Vec<'a, Node<'a>>,
396 > {
396 > {
397− ElementBuilder::new_with_namespace(bump, stringify!($name), stringify!(namespace))
397+ ElementBuilder::new_with_namespace(bump, stringify!($name), $namespace)
398 }
398 }
399 )*
399 )*
400 }
400 }
src/vdom.rs+6−2
@@ -508,8 +508,12 @@ impl VdomInnerExclusive {
508 self.change_list.emit_new_event_listener(l);
508 self.change_list.emit_new_event_listener(l);
509 }
509 }
510 for attr in attributes {
510 for attr in attributes {
511+ if attr.name == "xmlns" {
511− self.change_list
512+ self.change_list.emit_set_attribute(&attr.name, &attr.value);
513+ } else {
514+ self.change_list
512− .emit_set_attribute_ns(&attr.name, &attr.value);
515+ .emit_set_attribute_ns(&attr.name, &attr.value);
516+ }
513 }
517 }
514 for child in children {
518 for child in children {
515 self.create(registry, child.clone());
519 self.create(registry, child.clone());