Last modified: 2012-11-27 21:38:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44277, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42277 - VisualEditor: First character in empty document behaves strangely in Firefox
VisualEditor: First character in empty document behaves strangely in Firefox
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Highest normal
: VE-deploy-2012-12-10
Assigned To: Inez Korczyński
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-20 02:08 UTC by Roan Kattouw
Modified: 2012-11-27 21:38 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2012-11-20 02:08:44 UTC
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>.
Comment 1 Roan Kattouw 2012-11-22 00:58:43 UTC
https://gerrit.wikimedia.org/r/#/c/34681/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links