mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +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
Notes:
sideshowbarker
2024-07-17 08:45:34 +09:00
Author: https://github.com/shannonbooth
Commit: 673e3ec57d
Pull-request: https://github.com/SerenityOS/serenity/pull/21815
Reviewed-by: https://github.com/awesomekling
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