Bug 25088
| Summary: | Select all + delete should escape from heading | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Annie Sullivan <sullivan> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | eric, jparent |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | OS X 10.5 | ||
| URL: | http://www.mozilla.org/editor/midasdemo/ | ||
Annie Sullivan
Steps to reproduce:
1. Go to Midas Demo: http://www.mozilla.org/editor/midasdemo/
2. Enter the following HTML:
<h1>a</h1>b
3. Uncheck "View HTML Source".
4. Select all and press backspace or delete.
Actual result:
Cursor is still inside heading. Resulting HTML:
<h1><br></h1>
If you type again, or paste a lot of content, the content goes into the heading.
Expected result:
In both Firefox and IE, the heading is removed when selecting all and deleting. (Leaving just <br>).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Julie Parent
This is a duplicate that I've seen a few times, and is super annoying when you hit it as a user.
*** This bug has been marked as a duplicate of 19701 ***