css properties of document object - error

css properties of document object - error

This morning (I had just woken up), I tried to check the css "background-color" of the document object, and it threw an error "TypeError: Cannot ready property 'defaultView' of null".

This was in Chrome just going $(document).css("background-color");

I realize that I meant to check the background-color of the body element, but wanted to let you know about the error I was receiving.  This was in jQuery 1.4.2