Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to solve this error in IE8? The error is Microsoft JScript runtime error: Object doesn't support property or method 'getComputedStyle'

Please find below the code snippet. I need same to be work in IE8. Please help.

function loadPseudoElement(element, type) {
var style = window.getComputedStyle(element, type),
content = style.content;
if (content.substr(0, 3) === url) {
methods.loadImage(_html2canvas.Util.parseBackgroundImage(content)[0].args[0]);
}
loadBackgroundImages(style.backgroundImage, element);
}
Posted
Updated 3-Jul-14 20:40pm
v2

1 solution

 
Share this answer
 
Comments
Member 8478234 4-Jul-14 2:40am    
Checked already not working..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900