Closed Bug 665732 Opened 13 years ago Closed 11 years ago

Kuma: SVG and MathML embedding

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: openjck, Unassigned)

References

Details

(Whiteboard: [type:feature])

      No description provided.
Version: unspecified → Kuma
Assignee: lcrouch → nobody
Target Milestone: 1.0 alpha → ---
Priority: -- → P3
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!
Whiteboard: [u: user] [c: wiki] → [u: user] [c: wiki] s=2012-06-05
Whiteboard: [u: user] [c: wiki] s=2012-06-05 → u:user c:wiki s=2012-06-05 p=
Whiteboard: u:user c:wiki s=2012-06-05 p= → u:user c:wiki p=
Whiteboard: u:user c:wiki p= → u=user c=wiki p=
Blocks: 710720
No longer blocks: mathml-in-mdn
Blocks: 756263
No longer blocks: 710720
Blocks: 756266
No longer blocks: 756263
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
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reopening. My patch provided a list of MathML elements/attributes only. The SVG part for our Bleach whitelist is still missing.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Version: Kuma → unspecified
Component: Website → Landing pages
Need to fix for SVG (Bleach whitelist is still missing).
Keywords: feature
No longer blocks: 756266
Do we have this already, through the Live Samples system if nothing else?
Keywords: feature
Whiteboard: u=user c=wiki p= → [type:feature]
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.
Status: REOPENED → RESOLVED
Closed: 12 years ago11 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.