Closed Bug 959044 Opened 12 years ago Closed 3 days ago

Rich-text editing: before inserting a list, Enter key inserts <br>. After a list, Enter inserts <p>.

Categories

(Core :: DOM: Editor, defect, P5)

26 Branch
x86
macOS
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: brian, Unassigned)

Details

(Whiteboard: DUPEME?)

Attachments

(1 file)

Attached file richedit.html
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20131205075310 Steps to reproduce: 1. Go to Mozilla's Rich Text Editor sample page http://www-archive.mozilla.org/editor/midasdemo/, or open the attached HTML file richedit.html for a simple reproducible case. 2. Type a couple of short lines of text in the rich editable area. Hit Enter once after each line. Using the Inspector, notice that a single <br> is inserted into the rich-editor div. 3. Create either an unordered or ordered list. Add a couple of bullet items. 4. Hit Enter on a blank list item at the end, to end the list. 5. Type a couple of short lines of text. Hit Enter once after each line. Actual results: After the list, each time you hit Enter it inserts a <p> (which automatically inserts a blank line before each paragraph.) But before the list, each Enter inserted only a <br> (which did not insert a blank line.) Expected results: Enter should consistently add a <br>, whether before or after a list. Commentary: this makes GMail annoying in Firefox. After making a list, Enter works differently than it did before the list.
Component: Untriaged → Editor
Product: Firefox → Core
I tested with old versions of Firefox (v8), same issue, so surely an old bug maybe already reported.
Whiteboard: DUPEME?
It's true that this behavior has existed for a long time. But I searched the archives before filing it and I was unable to find it reported in the past.

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
Status: UNCONFIRMED → RESOLVED
Closed: 3 days ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: