The title in the first heading should be enclosed by an element with a dir and a lang attribute based on the page content language.
https://fa.wikipedia.org/w/index.php?title=%D8%A8%D8%AD%D8%AB:3GP_%D9%88_3G2&action=edit&uselang=de has currently:
<h1 id="firstHeading" class="firstHeading mw-first-heading" lang="de" dir="ltr">Bearbeiten von „<span id="firstHeadingTitle">بحث:3GP و 3G2</span>“</h1>
to avoid the bidi problem it should be
<h1 id="firstHeading" class="firstHeading mw-first-heading" lang="de" dir="ltr">Bearbeiten von „<span id="firstHeadingTitle" lang="fa" dir="rtl">بحث:3GP و 3G2</span>“</h1>
See Also:
https://phabricator.wikimedia.org/T4865
https://phabricator.wikimedia.org/T65880




