[Webkit-unassigned] [Bug 26633] New: Pasting a H2 into an H2 results in 2 H2's wrapping the content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 22 17:46:44 PDT 2009


           Summary: Pasting a H2 into an H2 results in 2 H2's wrapping the
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vkarun at google.com
                CC: jparent at google.com

Assume we have a snippet like 
<div contentEditable>
  <h2>Heading 1</h2>
  <div>line 1</div>

  <h2>Heading 2</h2>
  <div>line 2</div>

1) Place your cursor at the beginning of Header 2 and press enter to create a
2) Go to the line created in the previous step and paste the entire section 1
(from Heading 1 to end of line 1). 

Expected result:
The content is pasted without being wrapped in an h2.

Actual result:
The pasted content is wrapped in the h2 created in step (1) and results in the
following HTML.

<h2><span class="Apple-style-span" style="font-size:16px;font-weight:
normal;"><h2>Heading 1</h2><div>line 1</div><div>line 2</div></span></h2>

FF and IE seem to handle this quite gracefully.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list