diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-16 19:45:50 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-16 19:46:02 +0100 |
commit | 085cafd80a0183b0ef6c0a658d6505493e6d8b1e (patch) | |
tree | feb68e3416ee575121843447f0d22cd257d00af3 /Libraries/LibHTML/Parser | |
parent | a32cae4c3bf4442b6298d93a95e618bf8a9cb1ce (diff) | |
download | serenity-085cafd80a0183b0ef6c0a658d6505493e6d8b1e.zip |
LibHTML: Support the :empty pseudo class
Diffstat (limited to 'Libraries/LibHTML/Parser')
-rw-r--r-- | Libraries/LibHTML/Parser/CSSParser.cpp | 2 |
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; |