Skip to main content

set_alternative_text

Function set_alternative_text 

Source
pub fn set_alternative_text(
    content: &mut Element,
    path: &[usize],
    text: &str,
) -> Result<(), Refused>
Expand description

Give the figure at a path under the content root its alternative text, replacing what its svg:title said.

The SVG namespace is declared on the content root where it is not.

§Errors

The path does not lead to a figure, or the SVG namespace’s prefix is taken by another. Each is refused before anything changes.