I have a rather large script that is setting the height of five elements to one pixel. The script can be found here ( https://github.com/Wolfy87/Spark/blob/master/modules/round.js ) and is throwing an error on line 39. The error is only thrown in IE 6 and 7. I can not for the life of me see anything wrong with this at all, any ideas anyone? Does IE have something against the height of div’s? I have a running version of the whole library here ( http://flowdev.co.uk/spark.html ).
The error is as follows style is null or not an object.
It is only thrown once.
Thanks for any help you can give.
Have you tested what’s being selected in line 33?
var top = Sizzle('div.spark-corner-top div', element[e]);My guess is that
topmay be empty.