pub fn element_ns<MSG>(
namespace: Option<&'static str>,
tag: &'static str,
attrs: impl IntoIterator<Item = Attribute<MSG>>,
children: impl IntoIterator<Item = Node<MSG>>,
self_closing: bool
) -> Node<MSG>
Expand description
create a virtual node with namespace, tag, attrs and children
§Example
use sauron::{Node, vdom::element_ns,attr};
let svg: Node<()> = element_ns(
Some("http://www.w3.org/2000/svg"),
"svg",
vec![attr("width","400"), attr("height","400")],
vec![],
false
);