Bug 62687 - div can be a child of span on InsertParagraph
Summary: div can be a child of span on InsertParagraph
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 18:11 PDT by Annie Sullivan
Modified: 2011-06-17 11:01 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.94 KB, patch)
2011-06-15 17:43 PDT, Annie Sullivan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Annie Sullivan 2011-06-14 18:11:41 PDT
Create a contenteditable div and set the contents to:
<span>hello</span>

Place the cursor at the start of the span and press enter. The div now contains:
<span><div><span><br></span></div>hello</span>

There shouldn't be a block <div> element inside an inline <span> element. See comments 10 and 11 on bug 62621 for more details.
Comment 1 Annie Sullivan 2011-06-15 17:43:31 PDT
Created attachment 97377 [details]
Patch
Comment 2 WebKit Review Bot 2011-06-17 11:01:14 PDT
Comment on attachment 97377 [details]
Patch

Clearing flags on attachment: 97377

Committed r89145: <http://trac.webkit.org/changeset/89145>
Comment 3 WebKit Review Bot 2011-06-17 11:01:18 PDT
All reviewed patches have been landed.  Closing bug.