Function sauron::prelude::prelude::html::lookup::tag_namespace

source ·
pub fn tag_namespace(tag: &str) -> Option<&'static str>
Expand description

Find the namespace of this tag if the arg tag is an SVG tag, return the svg namespace html tags don’t need to have namespace while svg does, otherwise it will not be properly mounted into the DOM

Limitations: script, style,and a used inside svg will return None, as these are also valid html tags.