This should render as "₁2" (with subscript 1) but it is rendered as "12" because the generated MathML is invalid ("Incorrect number of children for <msub/> tag" is printed to the Firefox console). The same problem occurs with <math>{_{1}^2}</math> but in that case no <msub> element is generated.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Render {}_a^b like _a^b | mediawiki/extensions/Math | master | +14 -8 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | Feature | JeanCASPAR | T397585 Provide a macro for putting arbitrary Unicode content in <mo> tag | ||
| Open | Physikerwelt | T271001 Transition to MathML rendering as default | |||
| Open | None | T375318 Native MathML mode formatting bugs | |||
| In Progress | BUG REPORT | Physikerwelt | T375238 Client-side MathJax rendering problems | ||
| Resolved | BUG REPORT | Physikerwelt | T386071 <math>_1</math> not rendered as subscript | ||
| Resolved | Physikerwelt | T387952 <math>{_{1}^2}</math> not rendered as subscript |
Event Timeline
Comment Actions
The following MathML is produced:
<mrow data-mjx-texclass="ORD"><mstyle displaystyle="true" scriptlevel="0"><mrow data-mjx-texclass="ORD"><mn>1</mn></mrow><mrow data-mjx-texclass="ORD"><mn>2</mn></mrow></mstyle></mrow>
No browser warnings, see https://en.wikipedia.beta.wmflabs.org/wiki/T387952
Temml produces
<msubsup><mrow></mrow><mn>1</mn><mn>2</mn></msubsup>
Mathoid produces
<mrow class="MJX-TeXAtom-ORD">
<msubsup>
<mi></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msubsup>
</mrow>Comment Actions
in the code there is a comment that this special rendering was introduced
// this happens when FQ is located in Sideset (is this a common parsing way?)
we need to check what is meant by that before merging this to avoid regressions.
Comment Actions
Change #1141449 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):
[mediawiki/extensions/Math@master] Render {}_a^b like _a^b
Comment Actions
Change #1141449 merged by jenkins-bot:
[mediawiki/extensions/Math@master] Render {}_a^b like _a^b


