[][src]Function sauron::html::html_element_ns

pub fn html_element_ns<MSG>(
    tag: &'static str,
    namespace: &'static str,
    attrs: Vec<Attribute<&'static str, &'static str, AttributeValue, Event, MSG>, Global>,
    children: Vec<Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>, Global>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>

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.