[Webkit-unassigned] [Bug 25002] New: Repeated copy/paste can lead to deeply nested divs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 2 08:13:11 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25002

           Summary: Repeated copy/paste can lead to deeply nested divs
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://www.mozilla.org/editor/midasdemo/
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sullivan at google.com
                CC: eric at webkit.org, jparent at google.com


Steps to reproduce:
1. Go to Midas demo: http://www.mozilla.org/editor/midasdemo/
2. Type the following:
a
b
c

3. Highlight "b" and press Indent button. Resulting HTML:
a<blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px;
border: none; padding: 0px;">b</blockquote><div>c</div>
4. Select everything and copy. Paste in newline after "c".
5. Now select pasted content and paste in newline at end.
6. Repeat step 5 a couple of times

Actual result:
Each paste ends up in a nested div. Resulting HTML (blockquote styles removed
for readability):
a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div><div>a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div><div>a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div><div>a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div></div></div></div>

Expected result:
No extra divs should be added:
a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div>a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div>a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div>a<blockquote
class="webkit-indent-blockquote">b</blockquote><div>c</div>


-- 
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