script::dom::bindings::xmlname

Function validate_and_extract

Source
pub(crate) fn validate_and_extract(
    namespace: Option<DOMString>,
    qualified_name: &str,
) -> Fallible<(Namespace, Option<Prefix>, LocalName)>
Expand description

Validate a namespace and qualified name and extract their parts. See https://dom.spec.whatwg.org/#validate-and-extract for details.