Page MenuHomePhabricator

Syntax highlight replaces spaces between template parameter and equal sign by non-breaking spaces
Open, Needs TriagePublicBUG REPORT

Description

Setting:

  • Chrome on Android,
  • desktop version,
  • any Wikipedia (checked on English, Russian and French),
  • wiki-code editor,
  • syntax highlight enabled,
  • both logged-in and anonymous, including in Private mode.

How to reproduce:

  • open any article with infobox,
  • put the cursor in the end of any parameter value,
  • print anything.

What happens:

  • the cursor will transfer to the next line,
  • spaces before equal sign will be replaced by non-breaking spaces.

Usually "space - space - space - space" are replaced by "space - nbsp - space - nbsp", see https://en.wikipedia.org/w/?diff=917776868 as an example.

Mediawiki considers "param space nbsp" as different from "param space space" = "param" (see https://ru.wikipedia.org/w/?oldid=102360604 and https://ru.wikipedia.org/w/?oldid=102360613), so infobox mysteriously ignores parameter, although visually everything is all right.

Event Timeline

Which exact Chrome version? Does this also happen with another web browser?

Chrome 77.0.3865.92 on Android 9, but I meet this problem at least since October 2018. It does not happen neither in Firefox on the same Android, nor in Chrome on Windows.

TheDJ subscribed.

"syntax highlight enabled" so this is about the CodeMirror editor syntaxhighlighting and not about the wikicode content highlighting with <syntaxhighlight> feature.

TheresNoTime changed the subtype of this task from "Task" to "Bug Report".Aug 4 2022, 4:06 PM
Samwilson subscribed.

It seems possible that this bug will be resolved by the CodeMirror upgrade (T259059). There's also the chance that it's fixed in modern Chrome for Android (now on version 112).

As far as the CommTech team's involvement goes, we're preferring to put any time we have for CM into the upgrade, so I'm untagging us from this.