Closed
Bug 260066
Opened 20 years ago
Closed 20 years ago
"Save Page As" saves results of <Script> which then appears twice.
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mark, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
When you "Save Page As" and then re-load the page, stuff created by
<script> appears twice.
For example, load the following page:
----------------------------------
<html>
<body>
<p>This is a test
<p><script language=javascript> document.write(Date())</script>
<p>Some more text
-----------------------------------
Do "Save Page As" and then open the file that you saved. The date appears
twice, because both the <script> and the old HTML generated by it are saved.
Reproducible: Always
Steps to Reproduce:
1.Open a page with <script> that generates document content. (See example
under "Details")
2.Do "Save Page As" menu command.
3.Open the file saved in step 2.
Actual Results:
Text generated by the <script> appears twice.
Expected Results:
Text generated by the <script> should appear once. Either the <script> should
be saved, or the results of the script, but not both.
Also happens in Mozilla 1.6.
The same problem does NOT appear when you do "View Source".
Perhaps user could set a preference telling whether to save the <script> or the
results of the script.
Comment 1•20 years ago
|
||
>Perhaps user could set a preference telling whether to save the <script> or the
>results of the script.
that is, really, "web page, complete" vs "html only" in the filter dropdown of
the file picker... web page, complete will, by design, save the entire dom,
including the <script> as well as what it produced.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•