save page As only-HTML is not really an html only !

Discussion of features in Seamonkey
Post Reply
Michael REMY
Posts: 323
Joined: December 19th, 2009, 2:27 am

save page As only-HTML is not really an html only !

Post by Michael REMY »

hi,

i did not want to report it as a bug because it could be fixe just with a new option.

i wanted to save a page only with the html content, so i chose "save page as" then "web page html only" in the type select box.

But the file recorded contains javascript content into the html file.

with a feature name "html only", i would expect from seamonkey it could only save a file with html (and css element) but not javascript part in it.

so, it would be userful to have another option to excluse any javascript content from a save page when you chose "html only".

have a good day
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: save page As only-HTML is not really an html only !

Post by barbaz »

You may be able to use Mozilla Archive Format to achieve this? Snapshot save as MAFF can strips out JS (I think that is the default but not sure). The maff file is just a .zip file so it's fairly simple to extract everything if you want.
(I don't know what the result would be in terms of viewability though as I don't recall ever needing to do that...)
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: save page As only-HTML is not really an html only !

Post by WaltS48 »

Is inline styling HTML or CSS?

You also might want to have that ripped out, so your saved page only has the HTML content.
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
User avatar
Pim
Posts: 2215
Joined: May 17th, 2004, 2:04 pm
Location: Netherlands

Re: save page As only-HTML is not really an html only !

Post by Pim »

And attributes like onclick and so on? Would those have to be filtered out too?
Groetjes, Pim
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: save page As only-HTML is not really an html only !

Post by patrickjdempsey »

Why would you expect this feature to strip out the JS and CSS that's inline in the HTML file? That would be very strange. The options work like this:

- Save Page As > Web page complete = Creates a local folder containing all of the resource files such as external .CSS, .JS, and image files. It also saves a version of the HTML file that is edited with all of the links to the resource files rerouted to that local folder.

- Save Page As > Web page HTML only = Saves the original HTML file exactly as it is loaded from the server. External resources are not saved.

The purpose of that option is so you can get the original file that is not edited, not to parse out anything that isn't strictly HTML code. If you want to extract just the HTML related to a section of a website, highlight that area > right click selection > View Selection Source > right click the selection in the Viewer > Copy. Then Paste into Notepad or whatever.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
vladmir
Posts: 319
Joined: October 18th, 2004, 9:47 am

Re: save page As only-HTML is not really an html only !

Post by vladmir »

Try Scrapbook mod for SM
https: www mediafire.com/?zya5pbb8ct179
scrapbook-1.5.8-fx+sm.xpi

Fx and SM developers don't save pages and don't pay attention to Save page As function. *i think
Last edited by trolly on October 30th, 2015, 2:54 pm, edited 2 times in total.
Reason: Use link at your own risk.
Post Reply