mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
LibWeb: Port Selector to new Strings
Also use `Infra::is_ascii_case_insensitive_match()` in some appropriate places, after checking the specs.
This commit is contained in:
parent
c2f0b20d6b
commit
13d2111b74
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/AtkinsSJ
Commit: 13d2111b74
Pull-request: https://github.com/SerenityOS/serenity/pull/17500
Reviewed-by: https://github.com/trflynn89
6 changed files with 105 additions and 105 deletions
|
@ -51,7 +51,7 @@ DeprecatedString CSSStyleRule::serialized() const
|
|||
|
||||
// 1. Let s initially be the result of performing serialize a group of selectors on the rule’s associated selectors,
|
||||
// followed by the string " {", i.e., a single SPACE (U+0020), followed by LEFT CURLY BRACKET (U+007B).
|
||||
builder.append(serialize_a_group_of_selectors(selectors()));
|
||||
builder.append(serialize_a_group_of_selectors(selectors()).release_value_but_fixme_should_propagate_errors());
|
||||
builder.append(" {"sv);
|
||||
|
||||
// 2. Let decls be the result of performing serialize a CSS declaration block on the rule’s associated declarations, or null if there are no such declarations.
|
||||
|
@ -92,7 +92,7 @@ DeprecatedString CSSStyleRule::serialized() const
|
|||
DeprecatedString CSSStyleRule::selector_text() const
|
||||
{
|
||||
// The selectorText attribute, on getting, must return the result of serializing the associated group of selectors.
|
||||
return serialize_a_group_of_selectors(selectors());
|
||||
return serialize_a_group_of_selectors(selectors()).release_value_but_fixme_should_propagate_errors().to_deprecated_string();
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue