mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-01 05:41:01 +00:00
LibWeb: Port Document interface from DeprecatedString to String
This commit is contained in:
parent
9d88e14f20
commit
e74031a396
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/shannonbooth
Commit: e74031a396
Pull-request: https://github.com/SerenityOS/serenity/pull/21088
Reviewed-by: https://github.com/awesomekling
15 changed files with 108 additions and 96 deletions
|
|
@ -290,8 +290,7 @@ void HTMLScriptElement::prepare_script()
|
|||
}
|
||||
|
||||
if (!encoding.has_value()) {
|
||||
auto document_encoding = document().encoding_or_default();
|
||||
encoding = String::from_deprecated_string(document_encoding).release_value_but_fixme_should_propagate_errors();
|
||||
encoding = document().encoding_or_default();
|
||||
}
|
||||
|
||||
VERIFY(encoding.has_value());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue