[Webkit-unassigned] [Bug 25006] Style attribute contents are different after pasting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 1 21:47:10 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=25006


Tony Chang (Google) <tony at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tony at chromium.org




--- Comment #2 from Tony Chang (Google) <tony at chromium.org>  2010-02-01 21:47:08 PST ---
(In reply to comment #0)
> Also, if the content is styled by CSS applied to the document, these styles get
> added to the inlined pasted CSS as well.
> 
> Expected result:
> Pasted HTML should be same as original.

Just to be clear here, Annie, are you saying that you don't expect document CSS
to get applied when pasting?  Here's an example:

http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20style%3D%22color%3Agreen%22%3E%0A%3Cul%3E%3Cli%3Efirst%3C%2Fli%3E%3Cli%3Ecopyme%3C%2Fli%3E%3Cli%3Ethird%3C%2Fli%3E%3C%2Ful%3E%0A%3C%2Fdiv%3E%0A%0A%3Cdiv%20%20contentEditable%3Dtrue%3E%0A%3Cp%3Epastehere%3C%2Fp%3E%0A%3C%2Fdiv%3E&ohh=1&ohj=1&jt=&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1

If I copy one green list item and paste it in the "pastehere" line, WebKit
colors the pasted text as green.  Firefox and IE don't copy the color. 
However, TextEdit on Mac does copy the color when pasting.  OpenOffice Writer
also copies the color and I bet MS Word and Pages also copy the color.

Anyway, the answer to this question impacts how I would approach fixing this
bug.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list