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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

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
Blocks: 710713
Target Milestone: --- → 1.9
Whiteboard: u=contributor c=wiki p=1
Target Milestone: 1.9 → 2.0
Assignee: nobody → jbennett
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.
Target Milestone: 2.0 → 2.1
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\!
We may need to revisit this after further banging on migration, but for now...
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
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
Version: MDN → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.