From cdfc7a92f72165ad530bfaf920f1caf18974692f Mon Sep 17 00:00:00 2001 From: paaspaas00 <151774837+paaspaas00@users.noreply.github.com> Date: Thu, 25 Jul 2024 08:53:53 +0200 Subject: [PATCH] LibWeb: Fix typo "rtr" -> "rtl" --- Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp b/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp index dbb39dfb8ad..588bbd5152b 100644 --- a/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp +++ b/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp @@ -192,7 +192,7 @@ WebIDL::ExceptionOr>> construct_entry_list(J String dirname = attribute.value(); // 2. Let dir be the string "ltr" if the directionality of the element is 'ltr', and "rtl" otherwise (i.e., when the directionality of the element is 'rtl'). - String dir = MUST((control->directionality() == DOM::Element::Directionality::Ltr) ? String::from_utf8("ltr"sv) : String::from_utf8("rtr"sv)); + String dir = MUST((control->directionality() == DOM::Element::Directionality::Ltr) ? String::from_utf8("ltr"sv) : String::from_utf8("rtl"sv)); // 3. Create an entry with dirname and dir, and append it to entry list. entry_list.append(XHR::FormDataEntry { .name = dirname, .value = dir });