#12853 closed bug (notabug)
jQuery(window).height() returns incorrect height
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In jquery 1.8.2, jQuery(window).height() always returns the same as jQuery(document).height() instead of the height of the viewport. This means the jquery ui dialog function no longer works correctly. Everything worked fine after reverting to 1.7.2.
Change History (6)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
I also discovered, this only occurs if you don't specify a DOCTYPE.
So if I place <!DOCTYPE html> at the top of my HTML file, it works fine.
comment:3 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Thanks for contributing! We don't support quirks mode anymore. You must specify a valid doctype for jQuery to work as expected.
comment:4 Changed 10 years ago by
To clarify for anyone who lands on this page via Google, jQuery has never supported quirks mode and our unit tests have never been run in quirks. We do not consider changes in quirks mode results to be regressions or bugs.
comment:5 Changed 10 years ago by
Well, considering that it worked fine in all circumstances up until 1.8.2, I wouldn't consider this a "notabug"...
For me, this occurs in Chrome but not Firefox.