I got this error when testing my project with IE8: finally, it was so obvious, this method does not work with IE 8!
Error: Object doesn't support this property or method at: http:
I got this error with FF that supports this method, but I forgot to change window to my frame window object!
console.log(getComputedStyle(window.document.querySelector('.tip > .tip.top'), ':after').getPropertyValue('left')); TypeError: Argument 1 of Window.getComputedStyle is not an object. at: http://...
Note that the above error appears even if your window object is ok, but querySelector nothing! (I suspect this is your case).
centurian
source share