mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Port AttributeNames to FlyString
This commit is contained in:
@@ -71,7 +71,7 @@ WebIDL::ExceptionOr<void> HTMLProgressElement::set_value(double value)
|
||||
if (value < 0)
|
||||
return {};
|
||||
|
||||
TRY(set_attribute(HTML::AttributeNames::value, DeprecatedString::number(value)));
|
||||
TRY(set_attribute(HTML::AttributeNames::value, MUST(String::number(value))));
|
||||
progress_position_updated();
|
||||
return {};
|
||||
}
|
||||
@@ -98,7 +98,7 @@ WebIDL::ExceptionOr<void> HTMLProgressElement::set_max(double value)
|
||||
if (value <= 0)
|
||||
return {};
|
||||
|
||||
TRY(set_attribute(HTML::AttributeNames::max, DeprecatedString::number(value)));
|
||||
TRY(set_attribute(HTML::AttributeNames::max, MUST(String::number(value))));
|
||||
progress_position_updated();
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user