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 220.127.116.11) 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 (6)
comment:1 Changed 8 years ago by dmethvin
- Component changed from unfilled to dimensions
- Owner set to brandon
comment:4 Changed 6 years ago by SlexAxton
- Keywords height xhtml added
- Milestone changed from 1.4 to 1.5
- Priority changed from major to low
- Status changed from new to open