Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags containing right-to-left text infect surrounding text with right-to-left-ness #47

Open
zackw opened this issue Feb 27, 2018 · 0 comments

Comments

@zackw
Copy link

zackw commented Feb 27, 2018

Consider a tag named "src-page:ar:⁨الحرب الأهلية السورية⁩" The right-to-left (Arabic) text is not properly isolated to the HTML element containing the tag name, so, for instance, on the tag page, the count of items with that tag appears to the left of the Arabic words, inside the tag name:

screenshot from 2018-02-27 13-32-26

(Note: in order to prevent this very bug report from having the same problem, I have inserted Unicode direction isolation characters into the name of the tag. Those do not exist in my actual database.)

The best fix is probably to wrap each tag name in <bdi> ... </bdi> on render. Unicode direction isolation characters would also work, but they're invisible so that might be confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant