mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibWeb/CSS: Tag forgiving selector lists while parsing
This commit is contained in:
parent
7f803c5c3d
commit
3a43fa9e35
Notes:
github-actions[bot]
2024-11-14 19:08:30 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/3a43fa9e351 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2340
2 changed files with 3 additions and 0 deletions
|
@ -608,6 +608,7 @@ Parser::ParseErrorOr<Selector::SimpleSelector> Parser::parse_pseudo_simple_selec
|
|||
.type = Selector::SimpleSelector::Type::PseudoClass,
|
||||
.value = Selector::SimpleSelector::PseudoClassSelector {
|
||||
.type = pseudo_class,
|
||||
.is_forgiving = true,
|
||||
.argument_selector_list = move(argument_selector_list) }
|
||||
};
|
||||
}
|
||||
|
|
|
@ -142,6 +142,8 @@ public:
|
|||
// Only used when "pseudo_class" is "NthChild" or "NthLastChild".
|
||||
ANPlusBPattern nth_child_pattern {};
|
||||
|
||||
// FIXME: This would make more sense as part of SelectorList but that's currently a `using`
|
||||
bool is_forgiving { false };
|
||||
SelectorList argument_selector_list {};
|
||||
|
||||
// Used for :lang(en-gb,dk)
|
||||
|
|
Loading…
Reference in a new issue