Page MenuHomePhabricator

HTML entity is shown as a raw text in mobile version
Closed, ResolvedPublic

Details

Related Changes in Gerrit:

Event Timeline

Nevermind. I thought they were referring to addPortletLink styling problem. Sorry for the confusion.

I have updated the translation on translatewiki. We just need to wait until the change get merged, I suppose.

stjn subscribed.

I have updated the translation on translatewiki. We just need to wait until the change get merged, I suppose.

Updating the translation doesn’t fix the problem with bad Unicode handling though, and non-breaking space that you removed on Translatewiki was useful there.

I have updated the translation on translatewiki. We just need to wait until the change get merged, I suppose.

Updating the translation doesn’t fix the problem with bad Unicode handling though, and non-breaking space that you removed on Translatewiki was useful there.

Hmm, good point. I didn't think about the nbsp. Feel free to revert my change there or we can just wait until we fix this.

.........
I could replace this character on my own. But the problem isn't this character, but that some software replaces Unicode character "nbsp" with HTML entity and doesn't show this entity as "nbsp", but shows it as a raw text.

Change 566929 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/skins/MinervaNeue@master] Escape HTML in User namespace toolbar menu

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

Ammarpad triaged this task as Medium priority.Jan 24 2020, 6:29 AM

Change 566929 merged by jenkins-bot:
[mediawiki/skins/MinervaNeue@master] Escape HTML in toolbar menu

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

Edtadros subscribed.

Test Result

Status: ✅ PASS
OS: macOS Catalina
Browser: Chrome
Device: MBP
Emulated Device: iPhoneX

Test Artifact(s):

QA Steps

✅ AC1: On page https://ru.m.wikipedia.org/wiki/user:MBH?uselang=ru validate that HTML entity is not shown as a raw text on the in the overflow menu on the mobile version

ru.m.wikipedia.org_wiki_user_MBH_uselang=ru(iPhone X) (1).png (2×1 px, 323 KB)

The QA steps are wrong. This change hasn't deployed to production wikis yet. Use beta cluster instead. The correct URL would be https://en.m.wikipedia.beta.wmflabs.org/wiki/User:Jdlrobson?uselang=ru. Seems fixed though.

Screenshot_20200131-190340.png (480×960 px, 37 KB)

Resolving based on beta cluster results