Closed Bug 1688168 Opened 3 years ago Closed 2 years ago

Wrong display of characters of RTL language in a array

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: calixte, Assigned: Oriol)

References

Details

Attachments

(1 file)

Note the char at position 3 in the array (a shin)

" • תמוז תשע”ז [נז, ד]".split("")
Array(21) [ " ", "•", " ", "ת", "מ", "ו", "ז", " ", "ת", "ש", … ]

expand the array and then see char at position 3 (a tav).

" • תמוז תשע”ז [נז, ד]".split("")
(21) […]
0: " "
1: "•"
2: " "
3: "ת"
4: "מ"
5: "ו"
6: "ז"
7: " "
8: "ת"
9: "ש"
10: "ע"
11: "”"
12: "ז"
13: " "
14: "["
15: "נ"
16: "ז"
17: ","
18: " "
19: "ד"
20: "]"
length: 21
<prototype>: Array []

and " • תמוז תשע”ז [נז, ד]".split("")[3] shows a tav so I guess that the display of the collapsed array is wrong.

I'm seeing the same thing with Arabic as well

"أهلا".split("") -> Array(4) [ "أ", "ه", "ل", "ا" ]

inspect("أهلا".split(""))
->

▼ (4) […]
| 0: "أ"
| 1: "ه"
| 2: "ل"
| 3: "ا"

The collapsed array should be ["ا" , "ل", "ه", "أ" ]

Summary: Wrong display of hebrew characters in a array → Wrong display of characters of LTR language in a array
Summary: Wrong display of characters of LTR language in a array → Wrong display of characters of RTL language in a array
Severity: -- → S3
Priority: -- → P3

Something like this?

.objectBox.objectBox-string {
    unicode-bidi: isolate;
}
See Also: → 1613466
Assignee: nobody → oriol-bugzilla
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/06d8de7f3dda
Isolate bidi text in the console. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: