1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

LibWeb: Ignore vendor-prefixed pseudo-element/classes in selectors

Our debug logging when we fail to parse a legitimate selector, is less
useful when it's hidden among selectors that don't parse because they
contain vendor-prefixed pseudo-elements and classes. So, now we
specifically ignore these and don't produce a log message.
This commit is contained in:
Sam Atkins 2021-09-12 17:47:58 +01:00 committed by Andreas Kling
parent 83cd2eef8f
commit 13c67f9920
2 changed files with 17 additions and 2 deletions

View file

@ -102,6 +102,7 @@ public:
private:
enum class SelectorParsingResult {
Done,
IncludesIgnoredVendorPrefix,
SyntaxError,
};