Bug 25733 - Background color not copied when entire selection has background color applied
Summary: Background color not copied when entire selection has background color applied
Status: RESOLVED DUPLICATE of bug 11013
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.mozilla.org/editor/midasdemo/
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 11:34 PDT by Annie Sullivan
Modified: 2009-12-15 16:32 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Annie Sullivan 2009-05-12 11:34:42 PDT
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 "two" or all of "onetwothree" and copy.
5. Paste onto a new line.

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

EXPECTED RESULT:
Pasted "two" or "onetwothree" has green background color. This is the behavior of Firefox and IE.
Expected HTML:
<span class="Apple-style-span" style="background-color: rgb(51, 255, 51);">onetwothree</span><div><br></div><div><span class="Apple-style-span" style="background-color: rgb(51, 255, 51);">two</span></div>
Comment 1 Julie Parent 2009-12-15 16:32:05 PST

*** This bug has been marked as a duplicate of bug 11013 ***