Bug 109942

Summary: Escaping <ul> creates a <div>
Product: WebKit Reporter: Alex <other>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: rniwa, robert
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jsfiddle.net/k3vfp/

Alex
Reported 2013-02-15 07:56:13 PST
Steps to reproduce: ============ Created a <ul><li></li></ul> element inside a div with contenteditable=true. Actual results: ========= When you try to escape <ul> by pressing Enter key twice, it creates a new <div>. Expected results: ========== When pressing Enter key twice, to escape <ul> it should create a new <p> not <div> if there is a <p> already inside the contenteditable (like in the demo). Firefox 18 works as expected. Check out the demo: http://jsfiddle.net/k3vfp/ (<div> elements have a shade of grey as background)
Attachments
Note You need to log in before you can comment on or make changes to this bug.