mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 01:01:54 +00:00
LibWeb: Use FlyString where possible in NamedNodeMap
We cannot port over Optional<FlyString> until the IDL generator supports passing that through as an argument (as opposed to an Optional<String>). Change to FlyString where possible, and resolve any fallout as a result.
This commit is contained in:
parent
0bb0c7dac2
commit
f32185420d
Notes:
sideshowbarker
2024-07-16 22:24:48 +09:00
Author: https://github.com/shannonbooth
Commit: f32185420d
Pull-request: https://github.com/SerenityOS/serenity/pull/22539
8 changed files with 40 additions and 45 deletions
|
@ -190,7 +190,7 @@ WebIDL::ExceptionOr<Bindings::LegacyPlatformObject::DidDeletionFail> DOMStringMa
|
|||
}
|
||||
|
||||
// Remove an attribute by name given name and the DOMStringMap's associated element.
|
||||
auto data_name = builder.to_byte_string();
|
||||
auto data_name = MUST(builder.to_string());
|
||||
m_associated_element->remove_attribute(data_name);
|
||||
|
||||
// The spec doesn't have the step. This indicates that the deletion was successful.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue