Function sauron_core::html::html_element_ns [−][src]
pub fn html_element_ns<MSG>(
tag: &'static str,
namespace: &'static str,
attrs: Vec<Attribute<MSG>>,
children: Vec<Node<MSG>>
) -> Node<MSG>
Expand description
creates an html element with the element tag name and namespace This is specifically used for creating svg element where a namespace is needed, otherwise the browser will not render it correctly.