Page MenuHomePhabricator

VisualEditor: weird behavior with double square brackets
Closed, DeclinedPublic

Description

Try to start a line with a wikilinked word as you might do in the source editor.

  1. Typing the opening double square brackets will not trigger the no-markup warning.
  2. The opening brackets will immediately disappear, the closing ones will stay.
  3. When you reach the second closing bracket, VE will also add another one on the following line. (If instead of moving to step 4 you use the keyboard arrows around the word, you will not be able anymore to type something outside the brackets, and will need your mouse to place yourself outside of them).
  4. Keep typing something instead, then press Enter: whatever you added is automatically copied to the next line, while the "third" square bracket is furtherly moved onto the next line.
  5. Now add the brackets to an already existing word, correctly triggering the warning. Save anyway.
  6. Review the changes. The brackets that triggered the warning did not trigger the nowiki tags as well. An opening one and a closing one are gone, and what is left is weird anyway. (This can also be triggered before saving by hitting Back Space, but I can't say where).

The brackets that we added in the first place are all gone, the duplicated text is gone as well, just a lonely closing bracket stands still.

https://it.wikipedia.org/w/index.php?title=Utente%3AElitre_%28WMF%29%2FSandbox_VE&diff=61362482&oldid=61361463

Reminds me of https://bugzilla.wikimedia.org/show_bug.cgi?id=53079, actually.
Thanks.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=57207

Details

Reference
bz53856

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:56 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz53856.

I think this may have been a cacheing error? I can't reproduce, but it feels a lot like bug 53079, yes.