https://bugzilla.wikimedia.org/show_bug.cgi?id=42277
Web browser: ---
Bug #: 42277
Summary: VisualEditor: First character in empty document
behaves strangely in Firefox
Product: VisualEditor
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ContentEditable
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Steps to reproduce:
1. Go to a nonexistent page
2. Click the Create tab
3. Type "foobar"
Result: "f" appears on a line by itself, "oobar" appears on the next line. The
document model only contains "oobar". The "f" jumps around when rerendering
(e.g. when you press enter).
Can NOT be reproduced if:
* you use Chrome
* you click out of the editor and back into it before typing
* you press Ctrl+A, Backspace before typing text
The editor document looks like this:
<div contentEditable="true"><p><span class="slug"></span></p></div>
I think the cause of this bug is that Firefox initially puts the cursor before
the <p>, rather than inside the <p> or inside the <span>.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l