[Bug 256219] Re: Copy Link Location adds %20 where spaces should be in JAVASCRIPT links (messes up the js function when pasting somewhere else)

JasonSpradlin82 jaspradlin at gmail.com
Sat Aug 9 00:01:41 UTC 2008


Kind of, but no.

That bug references a direct copy (using ctrl-c or "copy" on the context 
menu) of text located in the address bar... In that case, the code that 
moves the selected text to the clipboard and  accidentally translates 
the %20 into a space.

In THIS bug, it only occurs when RIGHT CLICKING a link and selecting 
copy link location.  This time, it does do the opposite, but it makes 
sense to have it do this for the following reasons:

if I coded a page with <a href="www.google.com/fun times"> (made up 
link) then the browser needs to know to use URL encoding because the 
REAL address WILL actually be ..."fun%20times"

However, when using <a href="javascript:whatever(something, something 
else)">  we are not referencing a URL at all... We are calling a 
javascript command defined somewhere on the page or in an included 
file.  Firefox should NEVER presume to URL encode a link containing a 
javascript command, because URL encoding should only apply to URLs. 

Jason Spradlin
Atlanta, GA


Alexander Sack wrote:


> isnt this the opposite of the bug claimed in:
> https://bugzilla.mozilla.org/show_bug.cgi?id=440075 ?
>
> ** Changed in: firefox-3.0 (Ubuntu)
>        Status: New => Incomplete
>
>

-- 
Copy Link Location adds %20 where spaces should be in JAVASCRIPT links (messes up the js function when pasting somewhere else)
https://bugs.launchpad.net/bugs/256219
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox-3.0 in ubuntu.




More information about the Ubuntu-mozillateam-bugs mailing list