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-

Annie Sullivan
Reported 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.
Attachments
fixes the bug (10.72 KB, patch)
2009-08-14 16:54 PDT, Ryosuke Niwa
eric: review+
eric: commit-queue-
Ryosuke Niwa
Comment 1 2009-08-14 16:54:38 PDT
Created attachment 34880 [details] fixes the bug
Eric Seidel (no email)
Comment 2 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.
Ryosuke Niwa
Comment 3 2009-09-02 13:30:37 PDT
Note You need to log in before you can comment on or make changes to this bug.