mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 18:52:56 +00:00
LibTextCodec+LibURL: Implement utf-8
and euc-jp
encoders
Implements the corresponding encoders, selects the appropriate one when encoding URL search params. If an encoder for the given encoding could not be found, fallback to utf-8.
This commit is contained in:
parent
82a63e350c
commit
72d0e3284b
Notes:
github-actions[bot]
2024-08-08 16:51:38 +00:00
Author: https://github.com/BenJilks
Commit: 72d0e3284b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/975
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/skyrising
Reviewed-by: https://github.com/tcl3 ✅
11 changed files with 260 additions and 22 deletions
|
@ -160,10 +160,6 @@ WebIDL::ExceptionOr<void> HTMLFormElement::submit_form(JS::NonnullGCPtr<HTMLElem
|
|||
|
||||
// 6. Let encoding be the result of picking an encoding for the form.
|
||||
auto encoding = TRY_OR_THROW_OOM(vm, pick_an_encoding());
|
||||
if (encoding != "UTF-8"sv) {
|
||||
dbgln("FIXME: Support encodings other than UTF-8 in form submission. Returning from form submission.");
|
||||
return {};
|
||||
}
|
||||
|
||||
// 7. Let entry list be the result of constructing the entry list with form, submitter, and encoding.
|
||||
auto entry_list_or_null = TRY(construct_entry_list(realm, *this, submitter, encoding));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue