Ticket #4638 (closed bug: fixed)
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.
- Owner set to brandon
- Component changed from unfilled to dimensions
- Keywords height xhtml added
- Priority changed from major to low
- Status changed from new to open
- Milestone changed from 1.4 to 1.5