LibWeb: Fix typo "rtr" -> "rtl"
This commit is contained in:
parent
007c292af3
commit
cdfc7a92f7
Notes:
github-actions[bot]
2024-07-25 13:52:21 +00:00
Author: https://github.com/paaspaas00 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/cdfc7a92f72 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/825
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ WebIDL::ExceptionOr<Optional<Vector<XHR::FormDataEntry>>> 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 });
|
||||
|
|
Loading…
Add table
Reference in a new issue