[Webkit-unassigned] [Bug 220639] Web Inspector: BiDi issue on JavaScript evaluation result element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 21 15:17:45 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=220639
--- Comment #17 from Sam Sneddon [:gsnedders] <gsnedders at apple.com> ---
(In reply to fantasai from comment #15)
> Isolation is definitely the correct thing to do here. I would say in
> general, if there's anywhere in your UI where you're presenting
> user-generated strings inline with other content, you want to isolate.
>
> I'm a little unsure why you don't want dir=auto here, though. If you're
> dealing with RTL strings, wouldn't you want them handled as RTL?
Well, how do we expect a JS string such as "\u0633\u06cc\u0628\u002e" to get rendered in the console? I would expect "سیب." rather than ".سیب" as JS is normally treated as a LTR language?
Likewise, I'd expect "<span>\u0633\u06cc\u0628\u002e</span>" to render as "<span>سیب.</span>" (i.e., LTR, which admittedly dir=auto will compute to). Having the two strings put the bidi neutral character in a different place seems bad, as it becomes ambiguous as to what the value of the string is?
Like, is there any case where we'd want to render a JS string as RTL? That seems like that goes against the natural direction of JS?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210121/3d11589f/attachment.htm>
More information about the webkit-unassigned
mailing list