Bug 24431 - backspace at the front of a list item merges in the content before it?
Summary: backspace at the front of a list item merges in the content before it?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-06 12:40 PST by Eric Seidel (no email)
Modified: 2011-08-19 12:52 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-03-06 12:40:28 PST
backspace at the front of a list item merges in the content before it?

1. Start with <ul><li>a</li></ul>
2. place your cursor before the a
3. hit enter, now the HTML is: <ul><li><br></li><li>a</li></ul>
4. place your cursor in the first empty list item.
5. hit delete, now the HTML is: <div><br></div><ul><li>a</li></ul>
6. place your cursor before the 'a' again (in what is now the first list item again)
7. hit delete, now the HTML is: <ul><li><br>a</li></ul>

Expected would have been for the list item to go away and the HTML to have been just "a" or <div>a</div> (FF3 produces just 'a')

The real bug is just steps 6 and 7.  That hitting delete when there is a <div><br></div> before the list merges the <br> into the list.

I just wanted to show you that WebKit got itself into this situation. :)
Comment 1 Eric Seidel (no email) 2009-03-06 12:41:22 PST
This is likely very related to bug 24362.