Bug 25733
Summary: | Background color not copied when entire selection has background color applied | ||
---|---|---|---|
Product: | WebKit | Reporter: | Annie Sullivan <sullivan> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | eric, jparent, michaelthomas |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 | ||
URL: | http://www.mozilla.org/editor/midasdemo/ |
Annie Sullivan
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>
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Julie Parent
*** This bug has been marked as a duplicate of bug 11013 ***