1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Convert CSS Token value to new FlyString

This commit is contained in:
Sam Atkins 2023-02-13 13:57:40 +00:00 committed by Linus Groh
parent 09f7682feb
commit 7fc72d3838
4 changed files with 20 additions and 23 deletions

View file

@ -703,7 +703,7 @@ bool StyleComputer::expand_unresolved_values(DOM::Element& element, StringView p
// 1. If the attr() function has a substitution value, replace the attr() function by the substitution value.
if (!attr_value.is_null()) {
// FIXME: attr() should also accept an optional type argument, not just strings.
dest.empend(Parser::Token::of_string(attr_value));
dest.empend(Parser::Token::of_string(FlyString::from_utf8(attr_value).release_value_but_fixme_should_propagate_errors()));
continue;
}