Using jQuery, I add 2 attributes to an object element like this
$('#myObject').attr('codebase', pluginURL_IE);
$('#myObject').attr('onerror', 'InstallFailed();');
This code works on IE 7 and IE 8 but not in IE 9.
I inspected my tag using developer tools and found that the 'codebase' attribute is set and the 'onerror' attribute is not getting set in IE 9.
Any idea why I'm facing this problem only in IE 9? Thanks in advance.
codebaseandonerrorare not defined attributes and are custom attributes for elements. So, custom attributes are supported only from IE 9.<img/>tag and then retrieved their values and it seems to be working, in the sense that the same values set are retrieved.