Side navigation
#4638 closed bug (fixed)
Opened May 08, 2009 04:40PM UTC
Closed April 04, 2011 06:21AM UTC
Incorrect window height in Webkit browsers in xHTML mode
Reported by: | nbelaevski | Owned by: | brandon |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | dimensions | Version: | 1.3.2 |
Keywords: | height xhtml | Cc: | |
Blocked by: | Blocking: |
Description
Webkit browsers (tested with Win Safari 3.2.2/Chrome 1.0.154.64) 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.
Attachments (1)
Change History (6)
Changed May 09, 2009 03:56PM UTC by comment:1
component: | unfilled → dimensions |
---|---|
owner: | → brandon |
Changed July 15, 2010 10:42AM UTC by comment:2
Any idea when this will be fixed? Thanks!
Changed August 17, 2010 02:47AM UTC by comment:3
Test case still fails for Safari 5 on Windows.
Further discussion: http://forum.jquery.com/topic/missing-feedback-for-the-ticket-4638-the-problem-reported-more-than-a-year-ago
Changed October 23, 2010 11:53PM UTC by comment:4
keywords: | → height xhtml |
---|---|
milestone: | 1.4 → 1.5 |
priority: | major → low |
status: | new → open |
Changed February 01, 2011 09:57PM UTC by comment:5
No more reproducible with Chrome 8.0.552.237 - can be closed.
Changed April 04, 2011 06:21AM UTC by comment:6
resolution: | → fixed |
---|---|
status: | open → closed |
Tested the original test cases submitted with latest Chrome and Safari - as per nbelaevski, I can no longer reproduce this issue either. Closing as fixed.