Closed Bug 29529 Opened 25 years ago Closed 24 years ago

Hitting return repeatedly in a <p> gives unexpected results

Categories

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

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sfraser_bugs, Assigned: mozeditor)

Details

(Whiteboard: [PDT-])

To reproduce:
1. Load a file in composer that has a single <p> containing several lines of text 
inside the body.
2. Click in the text in the <p>
3. Hit Return a number of times. Here's what happens:

Before modification, source is
<p>
One of the suggestions that came out of this change was to do
notifications based on a timer rather than relying on network chunking.
The current set of changes enable that.
</p>

First Return (gives appearance of new line, as expected):

<p>
One of the suggestions that came out of this change was to do
n<br>
otifications based on a timer rather than relying on network chunking.
The current set of changes enable that.
</p>

Second Return (another new line, good!):

<p>
One of the suggestions that came out of this change was to do
n</p>
<p>otifications based on a timer rather than relying on network chunking.
The current set of changes enable that.
</p>

Third Return (yet another new line -- excellent!)

<p>
One of the suggestions that came out of this change was to do
n</p>
<p>

<br>

otifications based on a timer rather than relying on network chunking.
The current set of changes enable that.
</p>

Fourth return -- now things get screwey. We appear to _remove_ a blank line,
so the text under the space moves up:

<p>
One of the suggestions that came out of this change was to do
n</p>
<p>otifications based on a timer rather than relying on network chunking.
The current set of changes enable that.
</p>

Whoops! We've removed the <br>, but not replaced it with anything.
Target Milestone: M14
I think a lot of people will try to add several blank lines when editing e-mail 
or html files and may run into this so marking as "dogfood"
Keywords: dogfood
Putting on PDT- radar for beta1.  Unless this can be labeled as "braindead 
trivial" (per rickg :-)  Then, remove PDT-, give us info and resubmit to PDT.
Whiteboard: [PDT-]
m15
Status: NEW → ASSIGNED
Target Milestone: M14 → M15
This bug is still present with Joe's changes in my Mac build.
fixed (waot for tomorrows build)
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified in 7/27 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.