Closed Bug 305437 Opened 19 years ago Closed 19 years ago

link doubling after saving html document when using javascript to generate mailto link

Categories

(Toolkit :: Downloads API, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 115328

People

(Reporter: nightwalker, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 If a web page contains this javascript code: -------------------------------------------- <script type="text/javascript"> <!-- var username = "user"; var hostname = "domain.com"; var address = username + "@" + hostname; document.write("<a href="+"mail"+"to:"+address+">"+address+"<\/a>") //--> </script> ------------------------------------------------------------------------- and then the document is saved using File > Save Page As dialogue, the saved page will contain this code: ---------------------------- <script type="text/javascript"> <!-- var username = "user"; var hostname = "domain.com"; var address = username + "@" + hostname; document.write("<a href="+"mail"+"to:"+address+">"+address+"<\/a>") //--> </script><a href="mailto:user@domain.com">user@domain.com</a> ------------------------------------------------------------- In the saved page will appear the original javascript code and it's result, which leads to the mailto link being displayed two times. Reproducible: Always Steps to Reproduce: 1. Include javascript mentioned above in a page. 2. Use File > Save Page As dialogue to save the page on a harddrive. 3. Open the saved page. Actual Results: You'll see two same links, one after another. Expected Results: Not include the result of javascript in the saved page.
Attached file testcase comment #0 (deleted) —
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050821 Firefox/1.0+ ID:2005082112 confirming
Duplicate of/related to Core bug 115328 or Core bug 260066?
*** This bug has been marked as a duplicate of 115328 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: