duid_core/core/svg/mod.rs
1pub mod attributes;
2pub mod tags;
3use crate::core::html::{
4 attributes::Attribute,
5 nodes::{create_element, Node}
6};
7pub use tags::commons::*;
8
9pub const SVG_NAMESPACE: &str = "http://www.w3.org/2000/svg";
10
11
12pub fn svg_element<MSG: Clone>(
13 tag: &'static str,
14 attrs: &[Attribute<MSG>],
15 children: &[Node<MSG>]
16) -> Node<MSG>
17{
18 create_element(
19 Some(SVG_NAMESPACE),
20 tag,
21 attrs,
22 children
23 )
24}