Closed
Bug 401454
Opened 17 years ago
Closed 17 years ago
JavaScript snippet not transformed into in a proper link - unable to copy it in one step
Categories
(Other Applications :: ChatZilla, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: wormsxulla, Assigned: rginda)
Details
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?
Comment 1•17 years ago
|
||
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
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•