pub fn get_attribute(
doc: &BaseDocument,
node: NodeId,
name: &str,
) -> Result<Option<String>>Expand description
element.getAttribute(name).
The name is ASCII-lowercased before the lookup, as upstream does.
None is the DOM’s null, meaning the attribute is absent, which is
distinct from present-and-empty.