<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>32232</bug_id>
          
          <creation_ts>2009-12-07 11:20:51 -0800</creation_ts>
          <short_desc>Unnecessary nesting of divs after copy and pasting certain kinds of selections</short_desc>
          <delta_ts>2010-08-17 20:03:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>24009</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Garcia">justin.garcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>enrica</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>169391</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-12-07 11:20:51 -0800</bug_when>
    <thetext>Open the attached testcase (&quot;&lt;body contentEditable=&quot;true&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&quot;).  Type &quot;test&quot;, &lt;return&gt;, Select All, Copy, put the caret at the end of the document and Paste.  Examine the DOM, and you&apos;ll see:

&lt;body contentEditable=&quot;true&quot;&gt;
&lt;div&gt;test&lt;/div&gt;
&lt;div&gt;&lt;div&gt;test&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;/body&gt;

It would be nice to avoid the unnecessary nesting, since the divs don&apos;t have any properties worth preserving like a border.

&lt;rdar://problem/6759298&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>170844</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2009-12-11 11:13:10 -0800</bug_when>
    <thetext>Removing InRadar keyword since that one has been closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>170846</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2009-12-11 11:14:58 -0800</bug_when>
    <thetext>&lt;rdar://problem/7464871&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265913</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-08-17 20:03:18 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 24009 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>