<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>20663</bug_id>
          
          <creation_ts>2008-09-05 07:08:19 -0700</creation_ts>
          <short_desc>Ability to export the current markup, javascript and CSS to a file</short_desc>
          <delta_ts>2010-11-03 05:08:56 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="mathuaerknedam">webkit-bugzilla15a</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>joepeck</cc>
    
    <cc>me</cc>
    
    <cc>mike</cc>
    
    <cc>pbakaus</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90262</commentid>
    <comment_count>0</comment_count>
    <who name="mathuaerknedam">webkit-bugzilla15a</who>
    <bug_when>2008-09-05 07:08:19 -0700</bug_when>
    <thetext>It would be really nice to be able get all of the text out of the middle inspector pane. If I select &lt;html&gt; and press cmd-c I get the contents of &lt;html&gt;, 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90343</commentid>
    <comment_count>1</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2008-09-05 20:42:21 -0700</bug_when>
    <thetext>I am not sure I follow, can you explain more?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>165256</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Bakaus">pbakaus</who>
    <bug_when>2009-11-20 01:40:46 -0800</bug_when>
    <thetext>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&apos;s a  tricky problem to solve. Many people simply want to hack some code and change some styles, then hit the &quot;Save&quot; 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&apos;t static - however, it could work out for CSS (external) and by tracking portions of the markup not altered by JavaScript.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247554</commentid>
    <comment_count>3</comment_count>
    <who name="Alexei Masterov">masterov</who>
    <bug_when>2010-07-07 07:51:36 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247568</commentid>
    <comment_count>4</comment_count>
    <who name="Alexei Masterov">masterov</who>
    <bug_when>2010-07-07 08:27:58 -0700</bug_when>
    <thetext>*** Bug 31667 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247576</commentid>
    <comment_count>5</comment_count>
    <who name="Alexei Masterov">masterov</who>
    <bug_when>2010-07-07 08:44:58 -0700</bug_when>
    <thetext>Just to clarify, we&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277095</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-09-10 03:15:42 -0700</bug_when>
    <thetext>The copying of entire DOM subtree contents works as the bug author describes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>