Page MenuHomePhabricator

[M] When adding a date literal HTML with a span is shown
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Add a statement on Wikimedia Commons with P571 (inception)
  • Add a year like "1909"

What happens?:

  • Literal HTML is shown: "Will be displayed as: <span class="wbmi-input-widget--formatted">1909</span>"

grafik.png (286×860 px, 15 KB)

What should have happened instead?:

  • "Will be displayed as: 1909"

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

This happens since deployment of 1.38-wmf.20 (T293961)

Event Timeline

This hardly seems like a train blocker to me?
This doesn't impact security, performance, data integrity or substantially break anything in any way.
This looks terrible & we should fix it asap, but all in all it's just a minor (non-breaking) issue in a highly specific feature.

The above issue has been raised by the following patch T299289 with commit hash ee21ac272c4300b5c75f3d103e21c8e0258038eb

CBogen renamed this task from When adding a date literal HTML with a span is shown to [M] When adding a date literal HTML with a span is shown.Feb 9 2022, 5:56 PM

Change 762813 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/WikibaseMediaInfo@master] Fix formatting issue for Date input

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

Change 762954 had a related patch set uploaded (by Dylsss; author: Dylsss):

[mediawiki/extensions/WikibaseMediaInfo@master] Fix date formatting escaping

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

Change 762813 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] Fix formatting issue for Date input

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

Etonkovidova subscribed.

Checked on commons wmf.25 - works as expected; checked some other date-based statement - all look good.

Screen Shot 2022-03-09 at 4.42.48 PM.png (426×1 px, 51 KB)

Change 762954 abandoned by Dylsss:

[mediawiki/extensions/WikibaseMediaInfo@master] Fix date formatting escaping

Reason:

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