[Plugin: Jetpack by WordPress.com] JavaScript Error in IE7 – Gravatar Hovercards
-
I am using a self-hosted WordPress site with JetPack enabled. Today, I came across an issue with the Gravatar Hovercards component within JetPack on that site. Within the JavaScript for Gravatar Hovercards (the gprofiles.js?ver=2012Octaaa file, to be specific – it doesn’t seem to appear in the version without the ver parameter specified; but it does seem to show up in any copy with “aaa” in its ver parameter), there is an object declaration that ends with a comma. In Internet Explorer 7 and earlier (I’ve heard reports that this issue is also a problem in IE8, but haven’t been able to reproduce that), object declarations that ended with commas threw JavaScript errors, because IE expected one more item to be defined within that object declaration.
I realize IE7 is old, and warrants very little support, but this type of fix should be fairly simple to correct. If you search gprofiles.js?ver=2012Octaaa, you will find the following statement:
'padding':'0px','margin':'-2px 0 0 -2px',};if(jQuery.browser.msie&&9>jQuery.browser.version)
In the CSS declaration found in that snippet, the comma after
-2px'
is throwing a JavaScript error in IE7. Thanks.
- The topic ‘[Plugin: Jetpack by WordPress.com] JavaScript Error in IE7 – Gravatar Hovercards’ is closed to new replies.