1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pub use mt_dom::{element, element_ns};
pub mod attributes;
pub mod tags;
use crate::vdom;
pub use tags::commons::*;
pub const SVG_NAMESPACE: &str = "http://www.w3.org/2000/svg";
pub fn svg_element<MSG>(
tag: &'static str,
attrs: impl IntoIterator<Item = vdom::Attribute<MSG>>,
children: impl IntoIterator<Item = vdom::Node<MSG>>,
) -> vdom::Node<MSG> {
crate::html::html_element(Some(SVG_NAMESPACE), tag, attrs, children, false)
}