I encountered a strange phenomenon. When i type this code
- Code: Select all
var s = "http://search.cpan.org/search?mode=module&query=XML%3A%3AParser"; alert(decodeURI(s));
When I put the same code into an extension, it fails. "%3A" stays "%3a".
That drives me nuts. Is that a known bug, a feature or what? Or two different dialects?
other Entities like "%20" (space) are decoded correctly in both ways. Odd.