[#13375] Add MathML Support
Summary Add MathML Support
Queue IMP
Queue Version Git master
Type Enhancement
State Assigned
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester zhen (at) zzhang (dot) org
Created 2014-07-17 (1651 days ago)
Updated 2014-07-22 (1646 days ago)
Assigned 2014-07-22 (1646 days ago)
Patch No

2014-07-22 04:54:33 Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Assigned
Version ⇒ Git master
Reply to this comment
This is a problem with both the xss filter (which adds quoting) AND 
the tidy extension (which actually rips out the math portion 

However, this seems to be common among other XSS filters also.  i.e. 
testing with https://github.com/cure53/DOMPurify, it also strips out 
the entire math tag.

There's currently a disconnect between supporting this relatively new 
browser feature, but the issue existing XSS filters don't work well on 
it.  And at this point, we have to be better safe than sorry.

I've been thinking about redoing our XSS filter for awhile now ... 
since it doesn't fit properly in Text_Filter.  I'll look at this more 
once I finish with that.
2014-07-17 00:31:21 zhen (at) zzhang (dot) org Comment #2
New Attachment: test.html Download
Reply to this comment
Sorry, I forgot the attachement

2014-07-17 00:29:59 zhen (at) zzhang (dot) org Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 1. Low
Summary ⇒ Add MathML Support
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
Reply to this comment
IMP can not display MathML correctly now. This might be caused by the 
``clean HTML'' operation. Several marks like ``≈'' and 
``∑'' are converted into ``≈'' and ``∑'' in the 
``clean HTML operation''. Attached is an example from 
http://golem.ph.utexas.edu/~distler/blog/itex2MML.html. When open it 
directly in Firefox, the formulas are correctly displayed. However, 
when sending as an attachement in IMP, several fomulas can not be 
correctly displayed.

Saved Queries