Posts Tagged ‘javascript’

Internet Explorer and JavaScript copyright problem

Saturday, December 31st, 2011

IE, JavaScript and copyright

IE, JavaScript and copyright

After publishing recent update for User Role Editor plugin (version 3.3.) I got a couple of messages about WordPress crash after updating of plugin. That was very strange as for about 2,000 downloads for that moment we have only 2 installations with such problem.

The reason was simple. Did you guess already?
Yes, that was the former and noisy for almost every web developer browsers compatibility issue. There are no any problem with FireFox and Google Chrome. The only Internet Explorer (I tested versions from 6.0 to 8.0) automatically replaces ‘&copy’ part in the ‘&copy_from_user_role’ URL parameter name inside JavaScript code to the copyright © sign. That’s invalid role name inserted into WordPress database and the whole user roles and capabilities list crashes as a result. To isolate this problem I should use other name for this URL parameter – user_role_copy_from.
Wow!!! It started work as expected. Thank you, darling Microsoft.

Read the rest of this entry