mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 10:04:59 +00:00
LibWeb: Port Element::set_attribute_value from DeprecatedString
Removing the DeprecatedString / DeprecatedFlyString overloads of this function.
This commit is contained in:
parent
96463e947a
commit
673e3ec57d
5 changed files with 60 additions and 72 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue