Bug 109942
| Summary: | Escaping <ul> creates a <div> | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alex <other> |
| Component: | HTML Editing | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |