4 ms·
Trailing slashes are terrible in right-to-left contexts. The trailing slash suddenly teleports to the beginning of the URL visually. Take this example: <div
by Flimm 5y ago
Trailing slashes are terrible in right-to-left contexts. The trailing slash suddenly teleports to the beginning of the URL visually. Take this example:
<div dir="rtl">
http://example.com/example/
</div>
This displays as if it were the string:
/http://example.com/example
It's awful. Much better if everything was configured to leave off the trailing slash.
- hunter2_ 5y agoI know extremely little about RTL rendering, but it looks to me like if URLs are always meant to be interpreted as LTR, then they should be wrapped in <span dir="ltr"> any time the context is RTL. Perhaps this could be added heuristically (like how automatic linking happens heuristically) by wysiwyg inputs.
- laszlokorte 5y agoSeems like a bug in the URL detection heuristic, no? I would not have expected that URLs are detected inside rtl context in the first place.
- Flimm 5y agoIt's not about URL detection (which would wrap this URL in an <a> object). It's just about the way forward slashes are treated in a right-to-left context.