Page MenuHomePhabricator

[1][2][3] style references in unusual vertical position when editing, and erroneous [0] references added when saving
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • All references are not superscripts. That is, they are aligned towards the bottom of the line instead of the top. (The exact appearance differs between sites due to site styles, on en.wp they look almost like subscripts.) Observe [1][2][3][4] and [5] in this screenshot:

image.png (529×1 px, 78 KB)

  • If you leave the editor (e.g. click "Read" or save the edit), each [1] style citation generates a corresponding [0] citation next to it.

image.png (525×1 px, 82 KB)

What should have happened instead?:

  • Normal editing and saving

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Change 858564 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/Cite@master] VE: Use <sup> instead of <span> in CE HTML

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

My patch fixes only the first problem.

The second problem seems trickier; the Parsoid CSS seems to be incompatible with the old parser HTML, and I don't see a good way to fix it. We might have to revert the change, I'm not sure if this can be done easily though since other work now depends on that.

It seems to me that it is necessary to increase the priority.

Change 858591 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/Cite@master] Undo use of .reference instead of .mw-ref in Parsoid styles

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

Change 858564 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] VE: Use <sup> instead of <span> in CE HTML

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

Change 858591 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Undo use of .reference instead of .mw-ref in CSS counter rules

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

Change 858321 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/Cite@wmf/1.40.0-wmf.10] VE: Use <sup> instead of <span> in CE HTML

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

Change 858322 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/Cite@wmf/1.40.0-wmf.10] Undo use of .reference instead of .mw-ref in CSS counter rules

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

Change 858321 merged by jenkins-bot:

[mediawiki/extensions/Cite@wmf/1.40.0-wmf.10] VE: Use <sup> instead of <span> in CE HTML

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

Change 858322 merged by jenkins-bot:

[mediawiki/extensions/Cite@wmf/1.40.0-wmf.10] Undo use of .reference instead of .mw-ref in CSS counter rules

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

Mentioned in SAL (#wikimedia-operations) [2022-11-18T17:13:33Z] <thcipriani@deploy1002> Started scap: Backport for [[gerrit:858321|VE: Use <sup> instead of <span> in CE HTML (T323343)]], [[gerrit:858322|Undo use of .reference instead of .mw-ref in CSS counter rules (T323343)]]

Mentioned in SAL (#wikimedia-operations) [2022-11-18T17:13:53Z] <thcipriani@deploy1002> thcipriani and matmarex: Backport for [[gerrit:858321|VE: Use <sup> instead of <span> in CE HTML (T323343)]], [[gerrit:858322|Undo use of .reference instead of .mw-ref in CSS counter rules (T323343)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug2002.codfw.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2022-11-18T17:19:31Z] <thcipriani@deploy1002> Finished scap: Backport for [[gerrit:858321|VE: Use <sup> instead of <span> in CE HTML (T323343)]], [[gerrit:858322|Undo use of .reference instead of .mw-ref in CSS counter rules (T323343)]] (duration: 05m 58s)

The problem should be fixed on all wikis now.

Appears fixed. The steps to reproduce no longer generates either error. Thanks for the quick patches and backport.