Closed Bug 98351 Opened 24 years ago Closed 24 years ago

Indent button behaves differently if <li> contains two <br>

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: glazou, Assigned: mozeditor)

Details

(Whiteboard: EDITORBASE; fixinhand; need r=, sr=)

Attachments

(1 file)

(a) create the following list : <ol> <li>aaaaaaaaaaaaaaaaaaaaa</li> <li>bbbbbbbbbbbbbbbbbbbbb</li> <li>ccccccccccccccccccccc</li> </ol> put the caret in the middle of last list item and click on the indent button in toolbar. A sublist if correctly created. (b) back to the original source, insert two <br> elements at the end of the last list item ; the source becomes: <ol> <li>aaaaaaaaaaaaaaaaaaaaa</li> <li>bbbbbbbbbbbbbbbbbbbbb</li> <li>ccccccccccccccccccccc<br><br></li> </ol> (note : switching from source view to another one inserts line breaks before and after the last <br>) put once again the caret inside the last LI and click on the indent button. Expected result : a sublist, as in case (a) Actual result : a blockquote is created in the list item !!! Really strange....
096
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Whiteboard: EDITORBASE; 1 day;
attached diff does the trick. I'll need to make related, but unfortunately not very similar, changes to outdent.
Whiteboard: EDITORBASE; 1 day; → EDITORBASE; fixinhand; need r=, sr=
097
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Comment on attachment 55575 [details] [diff] [review] diffs of editor/libeditor/html/nsHTMLEditRules.{cpp,h} sr=kin@netscape.com
Attachment #55575 - Flags: superreview+
fix checked in on trunk.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
the blockquote is not generated using the build from 2003040308 on win2K
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: