i have this line somewhere in my JS file
while(this.c.offsetWidth > this.w - s && --exit){
w = isNaN(this.cw[0])? this.w - s : --this.cw[0];
if(w < 1 || this.w < Math.max(1, s)){break;}
this.c.style.width = isNaN(this.cw[0])? this.w - s + 'px' : --this.cw[0] + this.cw[1];
}
IE keeps telling me Invalid Argument code:0
but its working fine on other browsers (as expected from IE)
My guess is that the problem lies in this line:
If you think carefully about what
this.c.style.widthis set to, you’ll see that it would be set to different results. Exactly, in the former you use'px'but in the latter you don’t. Obviously, one of them is right while the other is wrong…Here is another example where ending characters were the problem.