Bug 24865 - Indenting in ordered lists creates multiple sublists
Summary: Indenting in ordered lists creates multiple sublists
Status: RESOLVED DUPLICATE of bug 21712
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Ryosuke Niwa
URL: http://www.mozilla.org/editor/midasdemo/
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 17:49 PDT by Annie Sullivan
Modified: 2009-07-20 16:20 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Annie Sullivan 2009-03-26 17:49:02 PDT
Steps to reproduce:
1. Go to Midas Demo: http://www.mozilla.org/editor/midasdemo/
2. Set HTML to the following:
<ol><li>one</li><li>two</li><li>three</li></ol>
3. Put cursor in front of "two" and click Indent button.
4. Put cursor in front of "three" and click Indent button.
(Note: can reverse steps 3 and 4, same thing happens)

Actual Result:
List looks like this:
1. one
  1. two
  1. three
Html looks like this (two <ol>s at same level):
<ol><li>one</li><ol><li>two</li></ol><ol><li>three</li></ol></ol>

Expected Result:
List looks like this:
1. one
  1. two
  2. three
Html looks like this (single <ol> contains sublist):
<ol><li>one</li><ol><li>two</li><li>three</li></ol></ol>
Comment 1 Julie Parent 2009-03-26 17:52:10 PDT
Heh, this is familiar.  FF 2 had many bugs like this and when they were fixed in FF 3, most user complaints about list editing went away.

Seems like we want editing commands to always merge adjacent lists if they are created via execComands.
Comment 2 Ryosuke Niwa 2009-06-29 10:54:12 PDT
This bug is a duplicate of 21712, and has been fixed by http://trac.webkit.org/changeset/45316
Comment 3 Julie Parent 2009-06-29 14:34:57 PDT

*** This bug has been marked as a duplicate of 21712 ***