pub fn attr_ns<Ns, Att, Val>(
namespace: Option<Ns>,
name: Att,
value: Val
) -> Attribute<Ns, Att, Val>
Expand description
Create an attribute with namespace
§Example
use mt_dom::{Attribute,attr_ns};
let href: Attribute<&'static str, &'static str, &'static str> =
attr_ns(Some("http://www.w3.org/1999/xlink"), "href", "cool-script.js");