WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
Bug 20663
Ability to export the current markup, javascript and CSS to a file
https://bugs.webkit.org/show_bug.cgi?id=20663
Summary
Ability to export the current markup, javascript and CSS to a file
mathuaerknedam
Reported
2008-09-05 07:08:19 PDT
It would be really nice to be able get all of the text out of the middle inspector pane. If I select <html> and press cmd-c I get the contents of <html>, but not the contents of any elements are exposed by a downward disclosure triangle. At the moment it appears the my only option is to get a series of screenshots or copy each element individually.
Attachments
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2008-09-05 20:42:21 PDT
I am not sure I follow, can you explain more?
Paul Bakaus
Comment 2
2009-11-20 01:40:46 PST
I think what he wants is an export function - the number one requested feature for all debuggers in any browser. The ability to export the current markup, javascript and CSS to a file. The ticket probably needs a more generic title though and a better explanation. I had a couple of ideas on this already, obviously it's a tricky problem to solve. Many people simply want to hack some code and change some styles, then hit the "Save" button to save the files back onto their drive. Two things here: 1) A basic export. Take the computed DOM representation and transform it back into linear markup+style, then offer as download. Should be doable. 2) Detect if local files are opened (file://) - if yes, show a save button that matches the computed and altered code back to the original source. Extremely difficult because the DOM isn't static - however, it could work out for CSS (external) and by tracking portions of the markup not altered by JavaScript.
Alexei Masterov
Comment 3
2010-07-07 07:51:36 PDT
Changing the subject to better reflect the nature of this feature. Currently we are working on a feature (38578) that allows for a CSS export. I am enetering it as dependency for this one, because it will be the first step towards making a full-featured exporter.
Alexei Masterov
Comment 4
2010-07-07 08:27:58 PDT
***
Bug 31667
has been marked as a duplicate of this bug. ***
Alexei Masterov
Comment 5
2010-07-07 08:44:58 PDT
Just to clarify, we'll be using this feature request to track much-requested feature that implements functionality similar to that of firediff. Users want an ability to export the changes that they made using live-editing of Javascript, CSS, and/or the DOM markup.
Alexander Pavlov (apavlov)
Comment 6
2010-09-10 03:15:42 PDT
The copying of entire DOM subtree contents works as the bug author describes.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug