Bug 24865
Summary: | Indenting in ordered lists creates multiple sublists | ||
---|---|---|---|
Product: | WebKit | Reporter: | Annie Sullivan <sullivan> |
Component: | HTML Editing | Assignee: | Ryosuke Niwa <rniwa> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | eric, jparent, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 | ||
URL: | http://www.mozilla.org/editor/midasdemo/ |
Annie Sullivan
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>
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Julie Parent
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.
Ryosuke Niwa
This bug is a duplicate of 21712, and has been fixed by http://trac.webkit.org/changeset/45316
Julie Parent
*** This bug has been marked as a duplicate of 21712 ***