mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb: Port Document interface from DeprecatedString to String
This commit is contained in:
committed by
Andreas Kling
parent
9d88e14f20
commit
e74031a396
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user