Bug 17460

Summary: Enter inside contentEditable header doesn't break out of header
Product: WebKit Reporter: Julie Parent <jparent@google.com>
Component: HTML EditingAssignee: Nobody <webkit-unassigned@lists.webkit.org>
Status: RESOLVED FIXED    
Severity: Normal CC: ap@webkit.org, justin.garcia@apple.com, ovafai@gmail.com
Priority: P2 Keywords: GoogleBug, InRadar
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
Attachments:
Description Flags
test case none

Description From 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 From 2008-02-21 05:40:38 PST -------
Created an attachment (id=19255) [details]
test case

Same test as an attachment.
------- Comment #2 From 2008-02-21 05:42:35 PST -------
Confirmed with r30379.
------- Comment #3 From 2008-03-17 15:23:05 PST -------
<rdar://problem/5803706>
------- Comment #4 From 2008-04-21 15:52:13 PST -------
http://trac.webkit.org/projects/webkit/changeset/32353