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
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
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: ---


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

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.(http://www.w3schools.com/tags/tag_bdi.asp)

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 https://commons.wikimedia.org/w/index.php?oldid=138431886.

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

https://gerrit.wikimedia.org/r/170589

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


Navigation
Links