duanjingyu007 / jquery-i18n-properties

Automatically exported from code.google.com/p/jquery-i18n-properties
0 stars 0 forks source link

String substitutions not made in IE7 #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. visit the linked demo at http://codingwithcoffee.com/files/trunk/index.html 
in IE7*
2. Notice that any keys that use substitution parameters are rendered without 
performing the substitution.

What is the expected output? What do you see instead?
The substitution should be done.

What version of the product are you using? On what operating system?
Trunk, MSIE7*

Please provide any additional information below.
If you don't have access to IE7, this can be reproduced using IE9/10 and 
enabling IE7 standards mode through the f12 developer tools.

Original issue reported on code.google.com by derekpr...@gmail.com on 16 Jul 2012 at 2:25

GoogleCodeExporter commented 8 years ago
The code was indexing strings as arrays. This is not supported in IE7 or 
earlier. The fix is simple - use charAt instead. charAt has the added bonus of 
making the code much more clear about its intentions.

Patch is attached.

Original comment by derekpr...@gmail.com on 16 Jul 2012 at 4:12

Attachments:

GoogleCodeExporter commented 8 years ago
This is happening in IE8 as well

Original comment by tjain1...@gmail.com on 28 Sep 2012 at 1:19

GoogleCodeExporter commented 8 years ago
Happens in almost all versions of IE. Even on IE 9 I see the issue.

Original comment by akhil.an...@gmail.com on 4 Oct 2012 at 8:35