LibWeb: Port Element::set_attribute_value from DeprecatedString

Removing the DeprecatedString / DeprecatedFlyString overloads of this
function.
This commit is contained in:
Shannon Booth 2023-11-05 12:57:54 +13:00 committed by Andreas Kling
parent 96463e947a
commit 673e3ec57d
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00
5 changed files with 60 additions and 72 deletions

View file

@ -121,7 +121,7 @@ WebIDL::ExceptionOr<void> DOMStringMap::set_value_of_new_named_property(Deprecat
{
// NOTE: Since LegacyPlatformObject does not know the type of value, we must convert it ourselves.
// The type of `value` is `DOMString`.
auto value = TRY(unconverted_value.to_deprecated_string(vm()));
auto value = TRY(unconverted_value.to_string(vm()));
AK::StringBuilder builder;
@ -149,7 +149,7 @@ WebIDL::ExceptionOr<void> DOMStringMap::set_value_of_new_named_property(Deprecat
builder.append(current_character);
}
auto data_name = builder.to_deprecated_string();
auto data_name = MUST(builder.to_string());
// FIXME: 4. If name does not match the XML Name production, throw an "InvalidCharacterError" DOMException.