I've created test pages here: https://developer-stage9.mozilla.org/en-US/docs/de/MathML/Element/math https://developer-stage9.mozilla.org/de/docs/de/SVG/Element/rect While MathML/SVG is rendered properly in the preview of the CKEditor, it gets escaped when saving the page.
thanks for testing and feedback! we'll pull this into a future sprint!
For remind: this page has some inline svg and is broken for the moment: https://developer-new.mozilla.org/en-US/docs/CSS/filter
For MathML, we have two kinds of usage: 1) Inline live examples for the MathML reference. I think here our regular (planned?) Live Example Tools will handle this case. 2) Mathematical formulas in the doc. We have a few places where we need to display mathematical info in the body of text (like for explaining CSS transforms). The live example tools won't solve this problem satisfactory (the formulas are part of the main text). For this case, I think we should allow, via Bleach, the minimal subset of MathML elements needed. I plan to make a Github PR for them as soon as I have some time (in the next weeks) — I really would like to be able to finish the doc about CSS transforms. For SVG, we also have two kinds of usage: 1) Inline live examples for the SVG reference. 2) Schematics were SVG is the logical format: it allows anybody to edit the schematics if needed (without the need of a separate "source" files), it allows to creates derivated schematics (which will have a similar look and feel), and it ease translation, as most schematics have embedded text. Also a bug in Firefox makes any non-embedded SVG images look horrible when a zoom is applied on the page (not the case for embedded SVG images).
I did the PR request for MathML, case 2: https://github.com/mozilla/kuma/pull/491
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/fdb1d7f7871d5a09e3267d605ac93a7d9dbd8a06 Bug 665732 - Add more MathML tags and attributes to the whitelist https://github.com/mozilla/kuma/commit/cddfeaa6b5e15c80291cb6e4d7a593e558da6c37 Merge pull request #555 from Elchi3/665732-mathml Bug 665732 - Add more MathML tags and attributes to the whitelist
Reopening. My patch provided a list of MathML elements/attributes only. The SVG part for our Bleach whitelist is still missing.
Need to fix for SVG (Bleach whitelist is still missing).
Do we have this already, through the Live Samples system if nothing else?
I *think* we're good to go here, but I recommend asking some of the MathML guys. Florian, any opinion?
Yep, this is not necessary.