Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving the manipulated DOM/HTML after editing it with Firebug

Assume that I've fired up Firefox with Firebug enabled on a random site (say slashdot.org). After loading the site I start editing the page using the Firebug > HTML panel. So far so good: my changes are immediately visible in Firefox.

My questions:

  • How do I save the edited DOM tree (represented as HTML)?
  • How do I load a previously manipulated DOM tree/HTML file into the "original context" of the page (slashdot.org in the example)? I want the original context so that all references entities (CSS, images, etc.) will load correctly.
like image 503
knorv Avatar asked Feb 02 '10 14:02

knorv


People also ask

How do I edit a Firefox html document?

Editing HTML You can edit the HTML — tags, attributes, and content — directly in the HTML pane: double-click the text you want to edit, change it, and press Enter to see the changes reflected immediately.

How do I edit htm files?

By right-clicking on the HTML in the “Elements” tab and selecting “Edit as HTML,” you can make live edits to the markup of a webpage that Chrome will immediately render once you're done editing.

How do I edit a Web page in Firefox?

Fire up Firefox and visit any/your site. From Firefox's hamburger menu (on the top right by default), choose “Web Developer -> Style Editor” or press the Shift + F7 combination on your keyboard. Firefox's Web Developer panel will appear on one side of its window – usually at the bottom part.


1 Answers

You can't save the tree per se, only the HTML. Select the root tag, right-click, and select Copy HTML, then paste into a text editor and save to a HTML file.

like image 68
Ignacio Vazquez-Abrams Avatar answered Sep 25 '22 01:09

Ignacio Vazquez-Abrams