Page MenuHomePhabricator

Wikitext conversion not working in Chrome/Windows when the source uses definition list formatting
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce:

  1. Go here: http://trove.nla.gov.au/newspaper/article/147502721
  1. Click the (i) information icon in the upper left to get "Details". Scroll to the bottom of this pane and copy the wikitext citation. (Important to use this source!)
  1. Cite > Manual > Basic
  1. Paste in the wikitext.
  1. Save the page.
  1. See the nowiki tags.

Reported in Chrome version 49.0.2623.87 m and not reproducible in either Safari or Firefox on Mac. It's also not readily reproducible if you copy the wikitext out of a text file/off Wikipedia – you need to copy the citation template directly from the Trove website.

The Trove website uses HTML definition lists for this information. Pasting any text from a definition list in Chrome causes the same problem (e.g., copying the exposed wikitext in https://en.wikipedia.org/w/index.php?oldid=709594606#Definitions ).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Two comments:

  • The Trove website uses HTML definition list formatting to display the multiple citation formats.
  • It's not necessary to paste it into the citation dialog. You can get the same lack-of-wikitext-conversion if you paste it into the body of an article.

Wikitext conversion only runs on plain text paste at the moment.

Whatamidoing-WMF renamed this task from Wikitext conversion not working in Chrome/Windows, at least for basic refs to Wikitext conversion not always working in Chrome/Windows, maybe related to list formatting in the source.Mar 11 2016, 6:12 PM

So when I copy the same letters off the Trove website in Safari and Firefox, that's "plain text", but when Kerry copies exactly the same letters off the Trove website in Chrome, it's "rich text"?

Whatamidoing-WMF renamed this task from Wikitext conversion not always working in Chrome/Windows, maybe related to list formatting in the source to Wikitext conversion not working in Chrome/Windows when the source uses definition list formatting.Mar 11 2016, 11:18 PM
Whatamidoing-WMF updated the task description. (Show Details)

The problem seems to be related to definition/association list formatting.

The browser decides when you copy whether it's plain text or HTML. Firefox appears to be deciding it's plain text.

Change 277765 had a related patch set uploaded (by Jforrester):
ElementLinearData: Include all non-content nodes is isPlainText loose mode

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

Change 277765 merged by jenkins-bot:
ElementLinearData: Include all non-content nodes is isPlainText loose mode

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

Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF set the point value for this task to 1.