[Webkit-unassigned] [Bug 99618] [MathML] Implement the mmultiscripts tag

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 28 00:18:35 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=99618





--- Comment #27 from Frédéric Wang <fred.wang at free.fr>  2013-08-28 00:17:57 PST ---
(In reply to comment #26)
> Created an attachment (id=209808)
 --> (https://bugs.webkit.org/attachment.cgi?id=209808&action=review) [details]
> test-case that shows red boxes
> 
> Attaching a test case that shows red boxes around items. 
> Is this expected?

Yes, this is invalid markup. The MathML spec indicates how invalid markup should be handled: http://www.w3.org/TR/MathML/chapter2.html#interf.error

As a comparison, Gecko displays and "invalid-markup" message instead of the mmultiscript element and sends an error to the console. MathJax generally prints an error message in place of invalid element (when it does not crash) but for your example it just shows nothing.

Here I chose to handle valid and invalid markup the same way, to avoid having to remove all the renderers when the mmultiscript element becomes temporarily invalid and creating them again when it becomes valid (for example if one adds/removes a child via javascript). However, I added a rule in css/mathml.css so that extra children in msub/msup/msubsup/mmultiscript are painted as merror. I thought that could help people to visualize invalid markup while still showing the mmultiscript content.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list