css_select/simple_matcher

Types

An HTML element represented as a tuple of the tag name and a list of attribute key-value pairs.

pub type Element =
  #(String, List(#(String, String)))

Values

pub fn match(
  element: #(String, List(#(String, String))),
  selector: selector.Selector,
) -> Bool

Check whether the given element matches the selector.

Returns True if the element’s tag name and all attribute selectors match, False otherwise.

Search Document