Bug 25088 - Select all + delete should escape from heading
Summary: Select all + delete should escape from heading
Status: RESOLVED DUPLICATE of bug 19701
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.mozilla.org/editor/midasdemo/
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-07 18:08 PDT by Annie Sullivan
Modified: 2009-04-07 18:15 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Annie Sullivan 2009-04-07 18:08:00 PDT
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>).
Comment 1 Julie Parent 2009-04-07 18:15:50 PDT
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 ***