Last modified: 2014-11-03 06:47:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74884, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72884 - Table of contents doesn't account for HTML <bdi> tags
Table of contents doesn't account for HTML <bdi> tags
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: rtl
  Show dependency treegraph
Reported: 2014-11-02 17:05 UTC by magog.the.ogre
Modified: 2014-11-03 06:47 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Page (correct) vs. TOC (incorrect) (7.55 KB, image/png)
2014-11-02 17:05 UTC, magog.the.ogre

Description magog.the.ogre 2014-11-02 17:05:32 UTC
Created attachment 16997 [details]
Page (correct) vs. TOC (incorrect)

BDI is an HTML 5 tag which tells the browser to isolate a section of bidirectional text.(

Wikimedia correctly renders BDI tags, but it ignores them when generating the table of contents for a page. 

For the following wikitext:
==== <bdi>[[User:مسعود بوکانی|مسعود بوکانی]]</bdi> (28 edits) ====

... the TOC renders the HTML as: 
<span class="tocnumber">2.76</span> <span class="toctext">مسعود بوکانی (28 edits)</span>

.... the page renders the HTML as:
<bdi><a href="/wiki/User:%D9%85%D8%B3%D8%B9%D9%88%D8%AF_%D8%A8%D9%88%DA%A9%D8%A7%D9%86%DB%8C" title="User:مسعود بوکانی">مسعود بوکانی</a></bdi>

You can view this in action at

I've attached screenshots for Chrome (one of the browsers which supports the tag).
Comment 1 Gerrit Notification Bot 2014-11-02 17:20:47 UTC
Change 170589 had a related patch set uploaded by TheDJ:
Parser: Add <bdi> to the whitelist for TOC links

Note You need to log in before you can comment on or make changes to this bug.