Bug 17460

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

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
<rdar://problem/5803706>