Bug 6724

Summary: Text copied from Web Inspector is different from actual text
Product: WebKit Reporter: Johan Bergström <bugs>
Component: Web Inspector (Deprecated)Assignee: Matt Lilek <dev+webkit>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs, dev+webkit, ian, joost, mitz
Priority: P3    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
patch
none
revised patch timothy: review+

Description Johan Bergström 2006-01-23 02:41:30 PST
1. When selecting everything within a field (for example style -> css elements applied) with command-a the above fields also gets included. Not sure if this is correct behaviour?

2. When copy pasting css data from style some data gets stripped. For example:
"background-image: none;" turns into "background-imagenone"
Comment 1 Joost de Valk (AlthA) 2006-01-23 05:16:53 PST
Confirmed, marking P3 as i don't think this is an issue blocking anything.
Comment 2 Timothy Hatcher 2006-01-29 01:05:28 PST
This happens because we use CSS generated content for the style markup and WebKit doesn't copy generated content. We could move off of generated content or preferably make generated content copyable.
Comment 3 Matt Lilek 2006-11-30 11:09:03 PST
Created attachment 11685 [details]
patch

This patch moves the markup from css to javascript until bug 7562 is fixed.
Comment 4 mitz 2006-11-30 11:30:14 PST
Comment on attachment 11685 [details]
patch

-    margin: 0.3em;

I think it would be nice to preserve the space. You can put  the "=" sign in its own span say with class "relation" and use the same margin rule for it.
Comment 5 Matt Lilek 2006-11-30 13:00:24 PST
Created attachment 11691 [details]
revised patch

revised patch with mitz's suggestion
Comment 6 Timothy Hatcher 2006-11-30 16:22:36 PST
Landed in r17953.