pub fn write_attribute<'a>(
element: &mut Element<'a>,
name: &str,
value: &str,
alloc: &'a Allocator,
)Expand description
Set an attribute by its HTML name, typed as hast types it: class becomes a list, a
boolean attribute true, replacing one already set.