Closed Bug 115459 Opened 23 years ago Closed 4 years ago

content NOT properly copied to the Clipboard for nested DIVS

Categories

(Core :: DOM: Selection, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jfarrell, Unassigned)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BuildID:    20011205

When I purformed this test, the very first HTML was not copied properly. 
(12nesteddivs.html) The multi colored box with the 
"This is a massively nested DIV" in the middle was not copied
correctly. The surounding color was not copied, only the center
"red" line was copied. Not sure if this was copied because it had
text in it, and the rest of the colors around it did not contain text.


Reproducible: Always
Steps to Reproduce:
1.follow steps in http://www.mozilla.org/quality/browser/front-
end/testcases/copy-paste/copy-complex-page/copy-complex-page-d.html

Actual Results:  multi-colored box not copied, only the red center with the 
text in it.

Expected Results:  I expected everything to be copied, including all the colors.

I was able to reproduce this on OpenVMS, build from 20011205, as well
as on a Linux machine I have.

Not sure if this is related to:
  55373
  79152
  99314
I didn't think so, but wasn't 100% sure.
This is happening because those colors are only applied due to the global 
stylesheet, which sets nonzero padding on the divs.  Over to selection.  It's 
not clear how, if at all, we should copy global style information... (maybe use 
computed style and create inline style??)
Assignee: asa → mjudge
Component: Browser-General → Selection
QA Contact: doronr → tpreston
Whiteboard: invalid?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: mjudge → nobody
QA Contact: tpreston → selection
Whiteboard: invalid?
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.