Bug Tracker

Ticket #4638 (closed bug: fixed)

Opened 5 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

safari-jquery.zip Download (2.0 KB) - added by nbelaevski 5 years ago.

Change History

Changed 5 years ago by nbelaevski

comment:1 Changed 5 years ago by dmethvin

  • Owner set to brandon
  • Component changed from unfilled to dimensions

comment:2 Changed 4 years ago by nbelaevski

Any idea when this will be fixed? Thanks!

comment:3 Changed 4 years ago by dmethvin

comment:4 Changed 4 years ago by SlexAxton

  • Keywords height xhtml added
  • Priority changed from major to low
  • Status changed from new to open
  • Milestone changed from 1.4 to 1.5

comment:5 Changed 4 years ago by nbelaevski

No more reproducible with Chrome 8.0.552.237 - can be closed.

comment:6 Changed 3 years ago by addyosmani

  • Status changed from open to closed
  • Resolution set to fixed

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.

Note: See TracTickets for help on using tickets.