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

       Web browser: ---
             Bug #: 31817
           Summary: The <bdi> tag is sanitized
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
            Blocks: 745
    Classification: Unclassified


HTML5 has several new features designed to help web designers create pages that
show RTL text properly. Among them is the new <bdi> element. It stands for
"bi-directional isolation", and it basically means that the text inside it
doesn't mix up with adjacent punctuation marks and numbers, which have
ambiguous directionality properties.

When it will be widely supported in browsers, this element will become very
useful in Wikimedia projects. Probably the most common use case for it is
showing the left-to-right name in an article about a person in a right-to-left
Wikipedia; this name is usually written in the opening paragraph and adjacent
to the birth date, which consists of numbers that get mixed up because of the
bidi algorithm. Currently it is solved by using Unicode control characters
(RLM), <bdi> is a more elegant solution.

This tag is currently sanitized, so it is impossible to use it in MediaWiki
pages. It shouldn't be sanitized. To do this, i suppose that it should be added
to htmlpairsStatic in includes/Sanitizer.php, but i'm not so familiar with that
class, so maybe something else is needed.

When will it be widely supported in browsers? It was just added to Mozilla, and
note that even the source file name is similar:
https://hg.mozilla.org/mozilla-central/rev/6f03f6a821c0

AFAIK, it is also about to be added to Chrome.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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