Closed
Bug 99523
Opened 24 years ago
Closed 23 years ago
Backspace/ForwardDelete should do merging of disimilar blocks
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla0.9.7
People
(Reporter: mozeditor, Assigned: mozeditor)
References
Details
(Whiteboard: EDITORBASE; fixinhand; need r=;sr=)
Attachments
(1 file, 2 obsolete files)
39.77 KB,
patch
|
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
If you backspace through typical content, the expect thing happens. If you
backspace at the front of a block, like a <p>, that is following another block of
the same type, the two blocks get merged. But if you backspace or forward delete
across a boundary between two disimilar blocks, we will delete the first
character in the other block, without merging the blocks. This is disconcerting
to the user because what gets deleted is not something that was even in the same
block as their cursor.
What should happen is that the blocks should be (perhaps partially) merged. I
will have to opine a treatise on the details later, but right now it is simply
too big to fit in this small margin.
Assignee | ||
Comment 2•24 years ago
|
||
This is hard to fix. I want to fix it yesterday. Probably can't get it done
before 1.0
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Assignee | ||
Updated•24 years ago
|
Whiteboard: EDITORBASE; 4 days
Assignee | ||
Comment 3•23 years ago
|
||
This patch does 99% of the heavy lifting by volume, and 95% by content. I will
update it to more recent sources soon, but I wanted to get it up here now so I
don't lose it.
Assignee | ||
Comment 4•23 years ago
|
||
still need to fix GetPriorNode() as per GetNextNode() fixes
Assignee | ||
Updated•23 years ago
|
Attachment #58748 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Whiteboard: EDITORBASE; 4 days → EDITORBASE; fixinhand; need r=;sr=
Target Milestone: mozilla1.0 → mozilla0.9.7
Assignee | ||
Comment 5•23 years ago
|
||
Finishes GetNextNode() work. Improves GetPriorNode() work considerably. Fixes
forward deletion, which did not work poperly in prior patches.
Assignee | ||
Updated•23 years ago
|
Attachment #58887 -
Attachment is obsolete: true
Comment on attachment 60796 [details] [diff] [review]
yet another improved patch
This patch makes things much better! 2 questions:
In MoveBlock(), in the block case, is there ever a situation where the
MoveContents() can fail because it's content can't be moved, and we still
delete it anyways? If there is, lets figure out the situation and file a new
bug so we can land this anyways.
MoveContents() should just call MoveNodeSmart().
sr=kin@netscape.com
Attachment #60796 -
Flags: superreview+
Assignee | ||
Comment 7•23 years ago
|
||
several improvements were made to the version of this patch I just checked in at
the suggestion of kin@netscape.com. Comments added, common code factored out,
and extraneous parameters removed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 8•23 years ago
|
||
Looks good to me on Win 2k using trunk build 2001123008.
I am verifying this as fixed.
If anyone is still seeing this problem, feel free to repopen this bug.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•