Page MenuHomePhabricator

Math's VisualEditor editor renders incorrect highlights on Math tag in MathJax mode in Chrome/Safari
Closed, ResolvedPublic1 Estimated Story Points

Description

<math display="block" forcemathmode="5">  \operatorname{erfc}(x) =
  \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt =
  \frac{e^{-x^2}}{x\sqrt{\pi}}\sum_{n=0}^\infty (-1)^n \frac{(2n)!}{n!(2x)^{2y}}</math>

gives

pasted_file (725×999 px, 57 KB)

when selected in VE

The problem being that VE tries to generate a highlight for every descendent in the DOM tree.

Event Timeline

Esanders raised the priority of this task from to Needs Triage.
Esanders updated the task description. (Show Details)
Esanders added projects: Math, VisualEditor.
Esanders subscribed.

T87007.png (984×640 px, 138 KB)
, shows that it works fine with Firefox.
It seems to be a Chrome (and similar browsers) specific problem.
So we need to fix this browser dependent. (cf. https://github.com/wikimedia/mediawiki-extensions-Math/blob/master/modules/ext.math.css#L43)

Jdforrester-WMF renamed this task from VE renders incorrect highlights on Math tag in MathJax mode to Math's VisualEditor editor renders incorrect highlights on Math tag in MathJax mode in Chrome/Safari.Jan 17 2015, 2:49 AM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF set Security to None.
gerritbot subscribed.

Change 172972 had a related patch set uploaded (by Physikerwelt):
Fix rendering issues in MathML mode

https://gerrit.wikimedia.org/r/172972

Patch-For-Review

Change 172972 merged by jenkins-bot:
Fix rendering issues in MathML mode

https://gerrit.wikimedia.org/r/172972