The default bug view has changed. See this FAQ.

Kuma: SVG and MathML embedding

RESOLVED WONTFIX

Status

Mozilla Developer Network
Wiki pages
P3
normal
RESOLVED WONTFIX
6 years ago
3 years ago

People

(Reporter: openjck, Unassigned)

Tracking

Details

(Whiteboard: [type:feature])

Comment hidden (empty)
(Reporter)

Updated

6 years ago
Version: unspecified → Kuma
Blocks: 602828
Assignee: lcrouch → nobody
(Reporter)

Updated

6 years ago
Target Milestone: 1.0 alpha → ---

Updated

6 years ago
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!

Updated

5 years ago
Whiteboard: [u: user] [c: wiki] → [u: user] [c: wiki] s=2012-06-05

Updated

5 years ago
Whiteboard: [u: user] [c: wiki] s=2012-06-05 → u:user c:wiki s=2012-06-05 p=

Updated

5 years ago
Whiteboard: u:user c:wiki s=2012-06-05 p= → u:user c:wiki p=

Updated

5 years ago
Whiteboard: u:user c:wiki p= → u=user c=wiki p=

Updated

5 years ago
Blocks: 710720
No longer blocks: 602828

Updated

5 years ago
Blocks: 756263
No longer blocks: 710720

Updated

5 years ago
Blocks: 756266
No longer blocks: 756263
Blocks: 602828
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

Comment 6

5 years ago
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
Last Resolved: 5 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 → ---
(Assignee)

Updated

5 years ago
Version: Kuma → unspecified
(Assignee)

Updated

5 years ago
Component: Website → Landing pages
Product: Mozilla Developer Network → Mozilla Developer Network

Comment 8

4 years ago
Need to fix for SVG (Bleach whitelist is still missing).
Keywords: feature
(Reporter)

Updated

4 years ago
No longer blocks: 756266
(Reporter)

Comment 9

4 years ago
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
Last Resolved: 5 years ago4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.