Closed
Bug 114429
Opened 23 years ago
Closed 23 years ago
Hitting backspace on a line before a HR makes caret ignore HR
Categories
(Core :: DOM: Editor, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: hwaara, Assigned: hwaara)
References
Details
Attachments
(1 file)
3.44 KB,
patch
|
mozeditor
:
review+
|
Details | Diff | Splinter Review |
Scenario:
This is a test
--------------
a|
Actual result after backspace:
This is a test|
--------------
Expected behaviour:
This is a test
--------------|
Assignee | ||
Comment 1•23 years ago
|
||
Comment on attachment 61095 [details] [diff] [review]
Patch v1
In editor some of us tend to stay away from using the combined pattern:
- if (NS_FAILED(res)) return res;
- if (!bCollapsed) return res;
+ if (NS_FAILED(res) || !bCollapsed) return res;
since it has on occassion caused some very subtle bugs in the past dealing with
an unexpected nsresult passed to the caller. I know that as it stands your
changes are functionaly equivalent. I'm wondering if we should be returning
NS_OK instead of res in the !bCollapsed and !nearNode cases.
Having said that, the rest of the diff looks ok to me. Since I'm going on
vacation, I'll give you a conditional sr=kin if you can get r=jfrancis.
Comment 3•23 years ago
|
||
Comment on attachment 61095 [details] [diff] [review]
Patch v1
looks fine/r=jfrancis
Attachment #61095 -
Flags: review+
Assignee | ||
Comment 4•23 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•