accessibility-rs 0.1.7

Web accessibility engine for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// build matching context
pub fn build_matching_context<'a>(
    nth_index_cache: &'a mut selectors::NthIndexCache,
) -> selectors::matching::MatchingContext<'a, accessibility_scraper::selector::Simple> {
    selectors::matching::MatchingContext::new(
        selectors::matching::MatchingMode::Normal,
        None,
        Some(nth_index_cache),
        selectors::matching::QuirksMode::NoQuirks,
    )
}