Skip to main content

select_attr_within

Function select_attr_within 

Source
pub fn select_attr_within(
    doc: &Document,
    root: NodeId,
    selector: &str,
    attr: &str,
) -> QueryResult<Vec<Option<String>>>
Expand description

Extracts attribute values from elements within a subtree matching a CSS selector.

ยงErrors

Returns [QueryError::InvalidSelector] if the selector syntax is invalid.