Re: IE6/IE7 vs. IE8 give different document.documentElement.scrollHeight
- From: Daniel Kabs <news042009@xxxxxxxx>
- Date: Fri, 24 Apr 2009 07:33:33 +0200
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
--
,-. . . .
,-. ,-. | | ,-. /,-.\ | , ,-. |-. ,-. . ,-| ,-.
| | |-' ||| `-. |,-|| |< ,-| | | `-. | | | |-'
' ' `-' `^' `-' \`-^/ ' ` `-^ ^-' `-' ' :; `-^ `-'
`-'
.
- References:
- IE6/IE7 vs. IE8 give different document.documentElement.scrollHeight
- From: Daniel Kabs
- Re: IE6/IE7 vs. IE8 give different document.documentElement.scrollHeight
- From: Eric Bednarz
- IE6/IE7 vs. IE8 give different document.documentElement.scrollHeight
- Prev by Date: change CSS class
- Next by Date: Re: change CSS class
- Previous by thread: Re: IE6/IE7 vs. IE8 give different document.documentElement.scrollHeight
- Next by thread: xpath help
- Index(es):