Function sauron::prelude::html_element_ns [−][src]
pub fn html_element_ns<MSG>(
tag: &'static str,
namespace: &'static str,
attrs: Vec<Attribute<&'static str, &'static str, AttributeValue, Callback<Event, MSG>>, Global>,
children: Vec<Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG>>, Global>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, 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.