https://bugzilla.wikimedia.org/show_bug.cgi?id=72884

            Bug ID: 72884
           Summary: Table of contents doesn't account for HTML <bdi> tags
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Parser
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

Created attachment 16997
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=16997&action=edit
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).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to