mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
LibWeb: Add remaining CSS AttributeMatchTypes
This adds: - ContainsString [att*=val] - StartsWithSegment [att|=val] - StartsWithString [att^=val] - EndsWithString [att$=val] Renamed AttributeMatchType::Contains to ::ContainsWord for clarity.
This commit is contained in:
parent
29d78bba4b
commit
7fefe34797
5 changed files with 38 additions and 10 deletions
|
@ -60,8 +60,11 @@ public:
|
|||
None,
|
||||
HasAttribute,
|
||||
ExactValueMatch,
|
||||
Contains,
|
||||
StartsWith,
|
||||
ContainsWord, // [att~=val]
|
||||
ContainsString, // [att*=val]
|
||||
StartsWithSegment, // [att|=val]
|
||||
StartsWithString, // [att^=val]
|
||||
EndsWithString, // [att$=val]
|
||||
};
|
||||
|
||||
AttributeMatchType attribute_match_type { AttributeMatchType::None };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue