Opened 14 years ago
Closed 12 years ago
#4638 closed bug (fixed)
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 (7)
Changed 14 years ago by
Attachment: | safari-jquery.zip added |
---|
comment:1 Changed 14 years ago by
Component: | unfilled → dimensions |
---|---|
Owner: | set to brandon |
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
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
comment:4 Changed 13 years ago by
Keywords: | height xhtml added |
---|---|
Milestone: | 1.4 → 1.5 |
Priority: | major → low |
Status: | new → open |
comment:6 Changed 12 years ago by
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.
Any idea when this will be fixed? Thanks!