Bug 24866 - Cannot press Enter to escape from bulleted list when <ul> is a child of <li>.
Summary: Cannot press Enter to escape from bulleted list when <ul> is a child of <li>.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P3 Minor
Assignee: Ryosuke Niwa
URL: http://www.mozilla.org/editor/midasdemo/
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 18:12 PDT by Annie Sullivan
Modified: 2009-09-02 13:30 PDT (History)
5 users (show)

See Also:


Attachments
fixes the bug (10.72 KB, patch)
2009-08-14 16:54 PDT, Ryosuke Niwa
eric: review+
eric: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.