LibWeb: Port Document interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-09-15 21:46:58 +12:00 committed by Andreas Kling
parent 9d88e14f20
commit e74031a396
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00
15 changed files with 108 additions and 96 deletions

View file

@ -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());