Closed
Bug 797779
Opened 12 years ago
Closed 12 years ago
Allow the dir attribute in bleach
Categories
(developer.mozilla.org Graveyard :: Localization, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: teoli, Unassigned)
References
()
Details
Attachments
(1 file)
53.05 KB,
image/png
|
Details |
In many places we will mix ltr and rtl content, like in code snippet. We need to be able to set the dir attributes on some structures (inside our templates) so that they appear correctly in rtl too. In Unicode some characters have an intrinsic direction, but not the < > " and other similar characters. In https://github.com/mozilla/kuma/blob/master/apps/wiki/models.py , we should allow the CSS dir (global attribute) on all HTML elements (MathML will be in a separate bugs, once we have sorted out). See the image showing the problem that the dir attribute will help to solve. (Though not in all cases, where we will use special Unicode characters)
Comment 1•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/9d3a1fd5ccd9fc9ccb8625aae9b336c7ec0aab8e Fix bug 797779: Allow 'dir' attribute in bleach. Since it's a global attribute in HTML, for simplicity's sake this simply allows it on anything. If there are elements it shouldn't be allowed on, we can always pare that down. https://github.com/mozilla/kuma/commit/23004038c66568dee7042c700c819830601dd05a Merge pull request #720 from ubernostrum/bleach-dir-797779 Fix bug 797779: Allow 'dir' attribute in bleach.
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 2•12 years ago
|
||
verified fixed https://developer.allizom.org/en-US/docs/HTML
Status: RESOLVED → VERIFIED
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•