JavaScript snippet not transformed into in a proper link - unable to copy it in one step

RESOLVED WONTFIX

Status

Other Applications
ChatZilla
RESOLVED WONTFIX
10 years ago
10 years ago

People

(Reporter: worms, Assigned: Robert Ginda)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a9pre) Gecko/2007102503 SeaMonkey/2.0a1pre
Build Identifier: ChatZilla 0.9.78.1-rdmsoft [XULRunner 1.8.0.9/2006120508]

If a javascript snippet like this one:

javascript:var%20embeds%20=%20document.getElementsByTagName('embed');%20for%20(var%20i=0;%20i<embeds.length;%20++i)%20if%20(embeds[i].getAttribute('type')=='image/svg-xml')%20{%20embeds[i].setAttribute('type','image/svg+xml');%20var%20src%20=%20embeds[i].getAttribute('src');%20embeds[i].removeAttribute('src');%20embeds[i].setAttribute('src',%20src);%20}%20void(0);

is pasted, it is not transformed in a proper link, the last ); are missing. 

Reproducible: Always

Steps to Reproduce:
1. receive a javascript thingie like the one copied above in "Details"
2. try to "Copy link location" to copy the link and use it
3. 
Actual Results:  
the link gets copied but the two last characters are missing (they are not displayed of being part of the link)

Expected Results:  
... I don't know, a working link?
There's no way to fix this sanely without breaking a bunch of other stuff - like <http://www.google.com/> being linked properly. The link would work if <> were escaped, I'm pretty sure - and I'm also pretty sure that they should be...
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.