<?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>25733</bug_id>
          
          <creation_ts>2009-05-12 11:34:42 -0700</creation_ts>
          <short_desc>Background color not copied when entire selection has background color applied</short_desc>
          <delta_ts>2009-12-15 16:32:05 -0800</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>11013</dup_id>
          
          <bug_file_loc>http://www.mozilla.org/editor/midasdemo/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Annie Sullivan">sullivan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
    
    <cc>jparent</cc>
    
    <cc>michaelthomas</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120913</commentid>
    <comment_count>0</comment_count>
    <who name="Annie Sullivan">sullivan</who>
    <bug_when>2009-05-12 11:34:42 -0700</bug_when>
    <thetext>STEPS TO REPRODUCE:
1. Go to Midas Demo: http://www.mozilla.org/editor/midasdemo/
2. Enter the following text:
onetwothree
3. Select all text and change the background color to green.
4. Select &quot;two&quot; or all of &quot;onetwothree&quot; and copy.
5. Paste onto a new line.

ACTUAL RESULT:
Pasted &quot;two&quot; or &quot;onetwothree&quot; has no background color. Resulting HTML:
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(51, 255, 51);&quot;&gt;onetwothree&lt;/span&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;two&lt;/div&gt;

EXPECTED RESULT:
Pasted &quot;two&quot; or &quot;onetwothree&quot; has green background color. This is the behavior of Firefox and IE.
Expected HTML:
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(51, 255, 51);&quot;&gt;onetwothree&lt;/span&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(51, 255, 51);&quot;&gt;two&lt;/span&gt;&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172098</commentid>
    <comment_count>1</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2009-12-15 16:32:05 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>