I think this is ECMAScript standard. I bet this has nothing to do with JS engine. So I will recommend the usage of replace instead of href assignment. Anyway, the line is wrong as you miss href portion :D