Closed
Bug 98351
Opened 23 years ago
Closed 23 years ago
Indent button behaves differently if <li> contains two <br>
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla0.9.7
People
(Reporter: glazou, Assigned: mozeditor)
Details
(Whiteboard: EDITORBASE; fixinhand; need r=, sr=)
Attachments
(1 file)
12.60 KB,
patch
|
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
(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....
Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.6
Assignee | ||
Updated•23 years ago
|
Whiteboard: EDITORBASE; 1 day;
Assignee | ||
Comment 2•23 years ago
|
||
Assignee | ||
Comment 3•23 years ago
|
||
attached diff does the trick. I'll need to make related, but unfortunately not very similar, changes to outdent.
Assignee | ||
Updated•23 years ago
|
Whiteboard: EDITORBASE; 1 day; → EDITORBASE; fixinhand; need r=, sr=
Comment on attachment 55575 [details] [diff] [review] diffs of editor/libeditor/html/nsHTMLEditRules.{cpp,h} sr=kin@netscape.com
Attachment #55575 -
Flags: superreview+
Assignee | ||
Comment 6•23 years ago
|
||
fix checked in on trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 7•21 years ago
|
||
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.
Description
•