Support attribute matching selectors
The selectors::Element
trait requires this method from implementations:
fn attr_matches(
&self,
ns: &NamespaceConstraint<&<Self::Impl as SelectorImpl>::NamespaceUrl>,
local_name: &<Self::Impl as SelectorImpl>::LocalName,
operation: &AttrSelectorOperation<&<Self::Impl as SelectorImpl>::AttrValue>,
) -> bool;
We need each element to store a copy of its attributes and values, so they can be matched by CSS selectors.
Note that we can start out by returning false
always until this is implemented; this is not a hard requirement for the first version that supports the rust-selectors crate.