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

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 added a subscriber: Esanders.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 16 2015, 11:33 AM

, 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 added a subscriber: gerritbot.

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

Jdforrester-WMF moved this task from Freezer to Q4 on the VisualEditor board.Feb 2 2015, 8:13 PM
Jdforrester-WMF edited a custom field.