Bug 17460 - Enter inside contentEditable header doesn't break out of header
Summary: Enter inside contentEditable header doesn't break out of header
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
Keywords: GoogleBug, InRadar
Depends on:
Reported: 2008-02-20 14:47 PST by Julie Parent
Modified: 2008-04-21 15:52 PDT (History)
3 users (show)

See Also:

test case (39 bytes, text/html)
2008-02-21 05:40 PST, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julie Parent 2008-02-20 14:47:57 PST
Given the following html "<div contentEditable><h2>foo</h2></div>", if the user hits enter after foo, the following html results: 
"<div contentEditable><h2>foo</h2><h2><br></h2></div>"

Other browsers break out of the header:
IE yields: "<H2>foo</H2><P>&nbsp;</P>"
Firefox yields: "<H2>foo</H2><br><br>"
Comment 1 Alexey Proskuryakov 2008-02-21 05:40:38 PST
Created attachment 19255 [details]
test case

Same test as an attachment.
Comment 2 Alexey Proskuryakov 2008-02-21 05:42:35 PST
Confirmed with r30379.
Comment 3 Mark Rowe (bdash) 2008-03-17 15:23:05 PDT