mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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,
|
.type = Selector::SimpleSelector::Type::PseudoClass,
|
||||||
.value = Selector::SimpleSelector::PseudoClassSelector {
|
.value = Selector::SimpleSelector::PseudoClassSelector {
|
||||||
.type = pseudo_class,
|
.type = pseudo_class,
|
||||||
|
.is_forgiving = true,
|
||||||
.argument_selector_list = move(argument_selector_list) }
|
.argument_selector_list = move(argument_selector_list) }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,6 +142,8 @@ public:
|
||||||
// Only used when "pseudo_class" is "NthChild" or "NthLastChild".
|
// Only used when "pseudo_class" is "NthChild" or "NthLastChild".
|
||||||
ANPlusBPattern nth_child_pattern {};
|
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 {};
|
SelectorList argument_selector_list {};
|
||||||
|
|
||||||
// Used for :lang(en-gb,dk)
|
// Used for :lang(en-gb,dk)
|
||||||
|
|
Loading…
Reference in a new issue