Last modified: 2014-10-16 13:32:43 UTC
lang and dir attributes are not applied to mw-content-text on a page that redirects to a file. On a redirect to a content they are applied. This causes the arrow in the redirect icon to point the wrong way when the user changes the UI language, and may cause other problems as well. Example: https://commons.wikimedia.org/w/index.php?title=File:Yhaplotree_svg.svg&redirect=no&uselang=he
It's the same with any redirect: random example from Meta https://meta.wikimedia.org/w/index.php?title=!vote&redirect=no&uselang=he <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="redirectMsg"><img src="//bits.wikimedia.org/static-1.24wmf18/skins/common/images/redirectltr.png" alt="#REDIRECT" /><span class="redirectText"><a href="/wiki/Don%27t_vote_on_everything" title="Don't vote on everything">Don't vote on everything</a></span></div>