Closed Bug 186153 Opened 23 years ago Closed 22 years ago

The source saved with CNTL-S is broken/different compared to version saved from "View Source"

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: sherman, Assigned: asa)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 I saved the source using CNTL-S and selecting "Web Page, Complete". The process created a FBI_eyes.html and an FBI_eyes_files directory containing the images used. When viewing the saved source, an entire new paragraph of code appeared at the end which put an extra graphic (set of eyeballs) on the screen for no reason. Saving the source via View_Source->File->Save_Page_As saved a version of the source that worked (once I moved the graphics files into the same directory as the source. Reproducible: Always Steps to Reproduce: 1. Bring up page 2. CNTL-S to save page, select "Web Page, Complete", and save. 3. Open resulting page as a file Actual Results: You'll see an extra pair of eyes on the screen that don't move. These were created by the extra paragraph of code that was added. Use diff to see the difference between the two versions of the source. Expected Results: Mozilla should not have added an extra 5 lines of code to the saved version. I have no idea where mozilla got it in it's head to output these lines of code. :-) Can't think of anything.
Seeing this bug, current CVS trunk build - WinXP-Sp1.
*** Bug 186209 has been marked as a duplicate of this bug. ***
choose "Web Page, HTML only" in the dropdown in save page as, if you want the source to not be modified at all. if you choose web page, complete, which is the default, it basically saves a serialized DOM, i.e. it includes HTML code that was created using javascript on the page.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.