Closed
Bug 83918
Opened 23 years ago
Closed 23 years ago
Not able to start a list (number or bullets) when using Bold style
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla0.9.5
People
(Reporter: momoi, Assigned: mozeditor)
References
Details
(Keywords: regression, Whiteboard: [QAHP] fix in hand; need r=,sr=)
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
** Observed with 6/1/2001 Win32 Branch build **
1.Open a new HTML eidtor document.
2. Type in a few lines. Then start a new line as follows:
a. At this point, the text is set to "Body Text".
b. Now CTRL+B (=turn on 'Bold' style.)
b. Type in something like: "How:" and then insert a newline (CR/LF)
c. Now try to create a list by clicking on the "bullet" or "number" button.
3. Instead of creating the list, the cursor resets to the end of the previous
line. The problem does not happen, if step (b) is omitted.
I think this is a bug that impairs basic functionality a lot of people
use.
Reporter | ||
Updated•23 years ago
|
Severity: normal → major
Comment 1•23 years ago
|
||
one problem here is that a list is not allowed within an inline element. We
would have to end the bold element at this point and then open the list. Granted
we should not jump back up to the previous line. Assigning to Joe and setting to
1.0
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Comment 2•23 years ago
|
||
cc joe
remove milestone for reconsideration. This bug is going to affect user
perception of doing lists.
This seems like a regression to me. We should be inserting the list and a bold
node inside of it. If we aren't going to the right things under the covers, then
we should disable the options to insert a list.
Comment 3•23 years ago
|
||
can't pull this in to 9.2, but will put it in 9.3
Target Milestone: --- → mozilla0.9.3
Assignee | ||
Comment 8•23 years ago
|
||
Assignee | ||
Comment 9•23 years ago
|
||
Status: NEW → ASSIGNED
Assignee | ||
Updated•23 years ago
|
Whiteboard: [QAHP] → [QAHP] fix in hand; need r=,sr=
Comment 10•23 years ago
|
||
-nsresult
-nsEditor::GetLeftmostChild(nsIDOMNode *aCurrentNode, nsIDOMNode **aResultNode)
+nsCOMPtr<nsIDOMNode>
+nsEditor::GetLeftmostChild(nsIDOMNode *aCurrentNode, PRBool bNoBlockCrossing)
I'm not at all keen on this change, for this reason (thanks to scc!):
nsIDOMNode* node = GetLeftmostChild(...)
compiles, but leaks, with this method signature.
scc suggests:
already_AddRefed<nsIDOMNode> nsEditor::GetLeftMostChild(...)
or, of course, the normal nsIDOMNode* out param method.
Comment 12•23 years ago
|
||
clearing the nsbranch keyword so as not to be confused with the current set of
nsbranch bugs.
Keywords: nsBranch
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Assignee | ||
Comment 13•23 years ago
|
||
checked in.
Kin investigated using the change Simon suggests, and there were problems
(crashes). So for now I'm just doing what I did originally: returning comptr's.
This will only leak if a seperate programming error is made, so it should be ok
for now. It would be nice to improve it later to make it safer.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•