LibWeb: Parse and match basic "contains" attribute selectors (~=)

This commit is contained in:
Andreas Kling
2020-06-10 15:43:41 +02:00
parent a38a5d50ab
commit 65c4e5cacf
4 changed files with 15 additions and 2 deletions

View File

@@ -242,6 +242,9 @@ void dump_selector(const Selector& selector)
case Selector::SimpleSelector::AttributeMatchType::ExactValueMatch:
attribute_match_type_description = "ExactValueMatch";
break;
case Selector::SimpleSelector::AttributeMatchType::Contains:
attribute_match_type_description = "Contains";
break;
}
dbgprintf("%s:%s", type_description, simple_selector.value.characters());