Closed Bug 98609 Opened 23 years ago Closed 22 years ago

return not advancing caret to newline sometimes.

Categories

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

defect

Tracking

()

VERIFIED DUPLICATE of bug 152419
mozilla1.2beta

People

(Reporter: sujay, Assigned: mozeditor)

References

Details

(Whiteboard: [QAHP] EDITORBASE-; 2 days)

email from Bij:

Okay, here is one bug I am not sure who it would go to.  I get it here and
there, 
but below is one way to reproduce it.  However, that's not how I usually run
into 
it. 

Steps: 
1) Open a blank document 
2) Click the horizontal line as the first item in the document 
3) Hit return 
4) Create a bullet and type the text "Hello" 
5) Put the caret in front of the horizontal line (left side) 
6) Hit tab to go to the end of the horizontal line (right side) 
7) Hit return 
8) Delete the new line 
9) Put the caret in the front of the horizontal line (left side) 
10) Hit tab to go to the end of the horizontal line (right side) 
11) Hit return 

Actual Results: Caret stays on the right side of the horizontal line with a 
decreased vertical size, but no new line created. 

Expected Results: Caret is on new line. 

Build Date/Platform: Win NT using 2001011004 build 

Thanks, Bij



------- Additional Comments From jfrancis@netscape.com 2001-01-19 23:44 -------

marking future for now but hoping to fix for moz0.9



------- Additional Comments From brade@netscape.com 2001-02-12 14:12 -------

is this the same as #67838?



------- Additional Comments From sujay@netscape.com 2001-05-04 09:11 -------

we need to reduce to simple test case.



------- Additional Comments From sujay@netscape.com 2001-06-25 15:27 -------

adding QAHP
Target Milestone: --- → mozilla1.0
*** Bug 66048 has been marked as a duplicate of this bug. ***
lemme see if I can get a reduce test case.
Keywords: nsbeta1
Whiteboard: [QAHP}
Priority: -- → P3
Whiteboard: [QAHP} → [QAHP]
I'm following Bijal's steps and I don't understand step 6).
How can you hit tab to go to the end of the Hrule when your caret
is in front of the Hrule?

Status: NEW → ASSIGNED
Whiteboard: [QAHP] → [QAHP] EDITORBASE; 2 days
Blocks: 104166
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 
(you can query for this string to delete spam or retrieve the list of bugs I've 
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
The directions are not right: tab does notmove the cursor, it inserts
whitespace.  If I use right arrow where he says tab, then I cannot reproduce
this bug.
steps for reproducing seem unlikely for most users, minusing
Whiteboard: [QAHP] EDITORBASE; 2 days → [QAHP] EDITORBASE-; 2 days
Here is a simpler testcase, taken from bug 127939:

1) Open blank page in Editor.
2) Select Debug->Insert Text.
3) Double click "those" to highlight, and then choose to underline
4) Double click "who" to highlight.
5) Press 'Enter' key

The text after the word "who" goes to the next line, but the caret remains at
the end of the first line.
removing minus...we have a better testcase...one that users might run into.
Keywords: nsbeta1
Whiteboard: [QAHP] EDITORBASE-; 2 days → [QAHP] EDITORBASE; 2 days
I believe the comment #7 test case is already fixed.  I don't understnad the
comment #1 testcase.
Javier, Joe is saying that your testcase is fixed...can you please
try again in later build ?

also state your expected results...
On build 2002031403 Win32, the testcase in comment #7 still fails.
Expected Result:  Pressing Enter erases "who" and moves both caret and "wait."
to the following line.
Actual Results:  Pressing Enter erases "who" and moves "wait." to the following
line, but the caret remains at the end of original line.
I'm full of crap.  I was remembering a different bug where there was an extra 
blank line caused.  
In most cases, clicking around and hitting return works, just in this case we
had to involve selection, and their had to be stuff following it on the line. We
consider this less critical than anything else on the EDITORBASE list.
Keywords: nsbeta1nsbeta1-
Whiteboard: [QAHP] EDITORBASE; 2 days → [QAHP] EDITORBASE-; 2 days
The trunk is the wave of the future!
Target Milestone: mozilla1.0.1 → mozilla1.1beta
The days of having a half dozen milestones out in front of us to divide bugs 
between seem to be gone, though I dont know why.  Lumping everything together as 
far out as I can.  I'll pull back things that I am working on as I go.
Target Milestone: mozilla1.1beta → mozilla1.2beta
Kindof a weird test case! (comment #7)
Keywords: nsbeta1-nsbeta1
The key thing seems to be that the selection must touch text that has any 
inline attribute on the left before hitting enter.
This is a dup of 152419.  It might not be obvious from looking at it, but the 
common feature between these two bugs is that you end up with a <br> just before 
the close of an inline style tag.  That's what drives the caret problems.


*** This bug has been marked as a duplicate of 152419 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.