Bug 24866

Summary: Cannot press Enter to escape from bulleted list when <ul> is a child of <li>.
Product: WebKit Reporter: Annie Sullivan <sullivan>
Component: HTML EditingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Minor CC: eric, jparent, justin.garcia, michaelthomas, rniwa
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
URL: http://www.mozilla.org/editor/midasdemo/
Attachments:
Description Flags
fixes the bug eric: review+, eric: commit-queue-

Description Annie Sullivan 2009-03-26 18:12:14 PDT
1. Go to Midas Demo: http://www.mozilla.org/editor/midasdemo/
2. Enter the following HTML (note <ul> is child of <li>):
<ul><li>item<ul><li>subitem</li></ul></li></ul>
3. Put cursor at end of "subitem" and press enter several times.

Actual result:
Cursor remains outdented, cannot escape <li>. Sample HTML after pressing enter several times:
<ul><li>item<ul><li>subitem</li></ul><div><br></div><div><br></div><div><br></div><div><br></div></li></ul>

Expected result:
Same as if the HTML was "<ul><li>item</li><ul><li>subitem</li></ul></ul>" (<ul> child of <ul>):
* First time pressing enter creates new list item under "subitem"
* Second time pressing enter outdents the list item (now under "item")
* Third time pressing enter outdents the list item, removing it entirely.
Comment 1 Ryosuke Niwa 2009-08-14 16:54:38 PDT
Created attachment 34880 [details]
fixes the bug
Comment 2 Eric Seidel (no email) 2009-09-02 03:22:34 PDT
Comment on attachment 34880 [details]
fixes the bug

Looks sane.  Ryosuke is a committer, he can set cq+ if he'd like the bot to commit it for him.  cq- for now.
Comment 3 Ryosuke Niwa 2009-09-02 13:30:37 PDT
Landed as http://trac.webkit.org/changeset/47987.