escape('MobileDesktop') "Mobile%u200CDesktop" encodeURIComponent('MobileDesktop') "Mobile%E2%80%8CDesktop"
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Replace zwnj in the footer with a nicer CSS solution | mediawiki/extensions/MobileFrontend | master | +8 -2 |
Related Objects
Event Timeline
@Krinkle, I cannot reproduce this. Can you please share a URL where this happens? Thanks.
Nearly every page of every mobile page is affected in Chrome 42.
Location: https://en.m.wiktionary.org/wiki/Wiktionary:Main_Page
Browser: Google Chrome Canary 42 for Mac.
And while it should be reported upstream that this character renders as tufu in Chrome 42 and above, the character shouldn't be there in the output stream. It being visible or not is just an escalation of that issue, not the issue itself. The character is there in all browsers.
The zwnj was added to address an issue in Arabic (https://phabricator.wikimedia.org/T62916). zwnj is supposed to be a non-printing character, so it makes no sense that Chrome would render it as tofu. I guess we'll have to figure out a work-around in the meantime :(
Actually, it looks like there is disagreement about whether or not it is actually a bug, so it's unlikely to be changed any time soon. (See thread at http://lists.w3.org/Archives/Public/www-international/2014JanMar/0212.html)
There are two courses of action we could take:
- Wait and see if the tofu bug in Chrome Canary makes it to the official Chrome release.
- Remove the zwnj from the footer and let the Arabic wikis add it locally.
Any opinions on which we should choose?
Change 185659 had a related patch set uploaded (by Amire80):
Replace zwnj in the footer with a nicer CSS solution
See the patch. It kills the zwnj and replaces it with a CSS trick. It's still a hack, but less ugly than zwnj. It would make more sense to simply apply something like unicode-bidi: embed to the <li>, but apparently Firefox doesn't render it correctly either :(
BTW, it also fixes another issue that is not easily visible on a vanilla local testing instance: the "Terms of use" and "Privacy policy" links in the bottom of mobile Wikipedia pages also have this incorrect disconnection, so they need either this patch or an additional ZWNJ, which would add to the ugliness. (I only have the "Privacy policy" link on my instance.)
we also have this issue in wikidata
not sure we can / want to work around it here with css, since it is a translation.
anyway, added comment int he chromium bug ticket.