Re: IE6/IE7 vs. IE8 give different document.documentElement.scrollHeight



Eric Bednarz wrote:
Then execute the following Bookmarklet:

Why wouldn’t you just use the console?

Where is the console in IE6 and IE7?

I get 148 in ‘IE7 Standards’ mode and 160 in ‘IE8 Standards (Page
Default)’. document.body.currentStyle.margin differs between the two
modes, so that would explain that little difference.

That's strange. I wonder why I get a totally different value.

Maybe you pushed some wrong buttons in the developer toolbar, or put
your site in the Compatibility View list without noticing.

When IE8 is in Compatibility View, navigator.userAgent should contain the version string "MSIE 7.0". I will check this.

I will also do my tests again with a fresh installation of XP, just to make sure.

Thanks.

Cheers
Daniel
--
,-. . . .
,-. ,-. | | ,-. /,-.\ | , ,-. |-. ,-. . ,-| ,-.
| | |-' ||| `-. |,-|| |< ,-| | | `-. | | | |-'
' ' `-' `^' `-' \`-^/ ' ` `-^ ^-' `-' ' :; `-^ `-'
`-'
.