Is IE8 jQuery(document).height() incorrect?
In IE8 jQuery(document).height() is returning a value that is 4 pixels bigger than the actual height of the body (if the body height is 100%). If i switch IE8 to compatibility mode it is correct.
After looking at the jquery code i've found that
document.documentElement["offsetHeight"] is 4 pixels larger than
document.documentElement["clientHeight"] and
document.documentElement["scrollHeight"]. Thus
document.documentElement["offsetHeight"] is being returned.
Is this a bug in IE8 or does Jquery need to be updated to deal with it?