Incorrect window height in Webkit browsers in xHTML mode
|Reported by:||nbelaevski||Owned by:||brandon|
Webkit browsers (tested with Win Safari 3.2.2/Chrome 188.8.131.52) doesn't have document.compatMode property, thus causing jQuery(window).height() to read size from body and not from documentElement, as it should be.
Attached test case contains two identical files saved with different extensions (.html and .xhtml). *.html file shows correct results, *.xhtml file shows "0" for window height. Expicit setting of compatMode (uncomment /*document.compatMode = "CSS1Compat";*/ in *.xhtml file) make it work as expected. I'm also attaching patch that fixes the issue.
Change History (7)
comment:4 Changed 7 years ago by
|Keywords:||height xhtml added|
|Milestone:||1.4 → 1.5|
|Priority:||major → low|
|Status:||new → open|