Skip to main content

set_attribute

Function set_attribute 

Source
pub fn set_attribute(
    doc: &mut BaseDocument,
    node: NodeId,
    name: &str,
    value: &str,
) -> Result<()>
Expand description

element.setAttribute(name, value).

The caller is responsible for marking layout dirty; see the crate root.