Intention:
Add a template and remove a non-breaking space ( ) in the same line/paragraph
Steps to Reproduce:
(Order matters!)
- Begin with a page that contains the HTML code for a non-breaking space. Open in VisualEditor.
- On the line that contains the nbsp, add a template (e.g., {{fact}}). The template should be added to the same 'word' that contains the nbsp.
- Then remove the nbsp (replace with a plain space, or just delete the whole 'word').
Actual Results:
VisualEditor added span text like <span about="g0.42287685585435686" data-ve-ignore="true"></span> when the nbsp was removed.
Adding a fact template to the end of:
1 mg 2 mg 3 mg 4 mg
turns into:
1 mg 2 mg 3 mg 4 mg{{Fact}}<span data-ve-ignore="true" about="g0.5170239245053381"></span>
However, adding the template to "3 mg" and deleting the nbsp from "2 mg" works correctly:
1 mg 2 mg 3 mg{{Fact}} 4 mg
Reproducible: Always
See https://en.wikipedia.org/w/index.php?title=Wikipedia%3AVisualEditor%2FFeedback&diff=591972176&oldid=591955710 and testing at https://en.wikipedia.org/w/index.php?title=User:Jay8g/sandbox&action=history on 23 January 2014 for many more details.
Found in Firefox 26 on Windows 7 with Monobook, confirmed in Safari 6 on Mac OS 10.8.5 with Vector.
Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=60897