6.0.0-alpha10
5/14/25

[#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 07/17/2014 (3954 days ago)
Due
Updated 07/22/2014 (3949 days ago)
Assigned 07/22/2014 (3949 days ago)
Resolved
Milestone
Patch No

History
07/22/2014 04:54:33 AM 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 
completely).

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.
07/17/2014 12:31:21 AM zhen (at) zzhang (dot) org Comment #2
New Attachment: test.html Download
Reply to this comment
Sorry, I forgot the attachement

07/17/2014 12:29:59 AM zhen (at) zzhang (dot) org Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Add MathML Support
Type ⇒ Enhancement
State ⇒ New
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