escape('MobileDesktop') "Mobile%u200CDesktop" encodeURIComponent('MobileDesktop') "Mobile%E2%80%8CDesktop"
|mediawiki/extensions/MobileFrontend||master||+8 -2||Replace zwnj in the footer with a nicer CSS solution|
Nearly every page of every mobile page is affected in Chrome 42.
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.
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?
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 :(