Closed
Bug 710734
Opened 13 years ago
Closed 13 years ago
Expand list of tags and attributes allowed by Bleach in Kuma pages
Categories
(developer.mozilla.org Graveyard :: Editing, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1
People
(Reporter: lorchard, Assigned: jbennett)
References
Details
(Whiteboard: u=contributor c=wiki p=1)
MindTouch appears to allow a wider range of tags and attributes to be used by page authors. Expand the list allowed in Kuma, and investigate to see if there are more tags to be allowed.
From an initial import of 100 pages, I found this:
* allow HTML comments? (eg. en/JavaScript/Reference)
* div
* class=callout-box
* class=note
* small (ie. en/AJAX)
* sup (ie. en/JavaScript)
* pre (ie. en/Building_an_Extension)
* h{1-6}
* <h6> missing?
* style (ie. en/CSS)
* video
* eg. en/CSS/CSS_transitions
| Reporter | ||
Updated•13 years ago
|
Target Milestone: --- → 1.9
Updated•13 years ago
|
Whiteboard: u=contributor c=wiki p=1
Updated•13 years ago
|
Target Milestone: 1.9 → 2.0
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → jbennett
| Assignee | ||
Comment 1•13 years ago
|
||
video and pre already seem to be allowed (i.e., are in the ALLOWED_TAGS list we pass to bleach.clean)?
Will add the rest of them, though.
Updated•13 years ago
|
Target Milestone: 2.0 → 2.1
Comment 2•13 years ago
|
||
Commit pushed to mdn at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/d98868f65c38a7f2472eb0772b6e99eabd264daf
bug 710734 - Expand list of tags and attributes allowed by Bleach in Kuma pages
* Tell bleach to allow h6, pre and sup tags in wiki articles.
* Tell bleach to allow attributes on h6 tags in wiki articles.
* Tell bleach to allow HTML comments in wiki articles.
* Tell bleach to allow class attributes on divs in wiki articles.
* Tell bleach to allow style attributes on h1-h6 in wiki articles.
* Minor surgical swap of sumo's ALLOWED_ATTRIBUTES for our own in wiki
parser.
* Add tests which verify that bleach allows all the tags we care about
allowing.
* Start testing attributes.
* Test ALL the attributes\!
| Reporter | ||
Comment 3•13 years ago
|
||
We may need to revisit this after further banging on migration, but for now...
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 4•13 years ago
|
||
Commit pushed to mdn_prod at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/d98868f65c38a7f2472eb0772b6e99eabd264daf
bug 710734 - Expand list of tags and attributes allowed by Bleach in Kuma pages
Updated•13 years ago
|
Version: MDN → unspecified
Updated•13 years ago
|
Component: Docs Platform → Editing
Updated•5 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
•