Page MenuHomePhabricator

Math: MathJax processes strong.error elements, but those are not exclusive to MathJax (also generated by Cite and Scribunto)
Closed, ResolvedPublic

Description

The error message « Des balises <ref> existent, mais aucune balise <references/> n’a été trouvée. » is parsed by MathJax when I go to [[fr:Spécial:Redirect/revision/97444940]].

PS: in debug mode, I have 6 lines in console : "MWDeprecationWarning: Use of "sajax_init_object" property is deprecated. Sajax is deprecated, use jQuery.ajax or mediawiki.api instead."


Version: unspecified
Severity: normal

Details

Reference
bz55675

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:31 AM
bzimport added projects: Math, JavaScript.
bzimport set Reference to bz55675.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

The error message « Des balises <ref> existent, mais aucune balise
<references/> n’a été trouvée. » is parsed by MathJax when I go to
[[fr:Spécial:Redirect/revision/97444940]].

Why do you think that this is "parsed by MathJax"?

The problem seems to happen because of this line:

dont la valeur s'élève à plusieurs ''milliards'' USD<ref>http://blogs.smithsonianmag.com/smartnews/2013/10/how-much-is-wikipedia-worth/</ref>

as the author did not add a line

<references />

at the end of his/her comment, hence there is no place where to list that ref.
Hence MediaWiki puts a warning at the end of the page.
Adding the missing line should fix it, I assume.

I don't see a valid bug here but instead expected behavior, but maybe I miss something?

Created attachment 13483
Screenshot of the problem

This screenshot is what I see.

Attached:

55675.png (267×894 px, 43 KB)

I don't see the error myself but from the screenshot it looks like MathJax's \ref command is somehow activated, see http://docs.mathjax.org/en/latest/tex.html#automatic-equation-numbering.

IIRC the Math extension restricts MathJax rendering to elements of a certain class so perhaps something is mixed up there. Alternatively, the Math extension could deactivate that command completely (I don't think it's used).

Have you enabled MathJax on frwiki?

  • Bug 55888 has been marked as a duplicate of this bug. ***

I've confirmed this on English Wikipedia. From duplicate bug 55888:

After I added a reference using VisuaEditor[1] I noticed there was no
<references /> tag in the page, and consequently there was the usual cite error
which says "Cite error: There are <ref> tags on this page, but the references
will not show without a {{reflist}} template (see the help page)."

The problem is: this message was displayed as if it were a formula, when I was
using MathJax.

The message is normal if I'm logged out (since the default is PNG images
instead of MathJax)

[1]
https://en.wikipedia.org/w/index.php?title=Direct_product_of_groups&diff=577738806&oldid=570948047

  • Bug 60057 has been marked as a duplicate of this bug. ***

Change 107601 had a related patch set uploaded by Anomie:
MathJax must not process every <strong class="error">

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

physik wrote:

I don't understand why is submiting patches to code that is not up to date instead of reviewing the new version of the math extension
that way we'll never make progress

physik wrote:

I don't understand why people are submiting patches to code that is not up to date
instead of reviewing the new version of the math extension.
In that way we'll never make progress!

Change 107601 merged by Physikerwelt:
MathJax must not process every <strong class="error">

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