Page MenuHomePhabricator

NWE shouldn't mark inserted ISBN with <nowiki> tags
Closed, DuplicatePublic0 Estimated Story Points

Description

Hi all,
I've noticed NWE marks inserted text with nowiki tags when it contain ISBN. I think this is unwanted behaviour.

SEE T154111#3296950 FOR NEW STEPS, THE STEPW BELOW DO NOT WORK ANYMORE

Steps to reproduce

  1. Open any page at cs.wikipedia.org
  2. Edit the page with NWE
  3. Try to insert EASSEY, George. Esence ájurvédy. Olomouc: Fontána, c2007. ISBN 978-80-7336-398-7.

Current behaviour
NWE cover ISBN to nowiki tags

Expected behaviour
NWE pasts ISBN as it is in original text.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF moved this task from To Triage to TR1: Releases on the VisualEditor board.
Jdforrester-WMF set the point value for this task to 0.
Jdforrester-WMF subscribed.

Sorry about the slow response; we fixed it last month but I've only now got to this task.

The bug reappeared for some ISBNs. See the steps below.

Steps to reproduce

  1. Go to citace.com (Czech generator for bibliographic references)
  2. Into the textbox insert ISBN 9788024747354
  3. Click Generovat citaci
  4. Click Ukázat citaci
  5. Select&copy the reference displayed
  6. Go to any page at cs.wikipedia.org
  7. Open it in NWE
  8. Insert the copied reference from step 5 to the page

What should happen
The ISBN is inserted as-is

What happened
The ISBN is covered with <nowiki> tags.

Is it re-appearance of this bug? Or should I fill another task?

I did a little experimentation. It appears this bug is being triggered by T153315. Instead of doing a normal copy-paste, the NewEditor defaults to trying to convert HTML into wikitext. When it sees the italics it triggers HTML->Wikitext conversion. Then nowikis get spammed into your wikitext.