summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Parser
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-16 19:45:50 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-16 19:46:02 +0100
commit085cafd80a0183b0ef6c0a658d6505493e6d8b1e (patch)
treefeb68e3416ee575121843447f0d22cd257d00af3 /Libraries/LibHTML/Parser
parenta32cae4c3bf4442b6298d93a95e618bf8a9cb1ce (diff)
downloadserenity-085cafd80a0183b0ef6c0a658d6505493e6d8b1e.zip
LibHTML: Support the :empty pseudo class
Diffstat (limited to 'Libraries/LibHTML/Parser')
-rw-r--r--Libraries/LibHTML/Parser/CSSParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Parser/CSSParser.cpp b/Libraries/LibHTML/Parser/CSSParser.cpp
index 6cfc93c75a..92eeaeebbc 100644
--- a/Libraries/LibHTML/Parser/CSSParser.cpp
+++ b/Libraries/LibHTML/Parser/CSSParser.cpp
@@ -325,6 +325,8 @@ public:
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::FirstChild;
else if (pseudo_name == "last-child")
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::LastChild;
+ else if (pseudo_name == "empty")
+ simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::Empty;
}
return simple_selector;