Side navigation
#12853 closed bug (notabug)
Opened November 06, 2012 03:01AM UTC
Closed November 07, 2012 01:47PM UTC
Last modified November 09, 2012 11:00AM UTC
jQuery(window).height() returns incorrect height
Reported by: | DanielFunken@gmail.com | 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.
Attachments (0)
Change History (6)
Changed November 06, 2012 07:01AM UTC by comment:1
Changed November 07, 2012 06:54AM UTC by comment:2
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.
Changed November 07, 2012 01:47PM UTC by comment:3
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.
Changed November 07, 2012 03:45PM UTC by comment:4
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.
Changed November 08, 2012 02:42AM UTC by comment:5
Well, considering that it worked fine in all circumstances up until 1.8.2, I wouldn't consider this a "notabug"...
Changed November 09, 2012 11:00AM UTC by comment:6
OK thanks!
For me, this occurs in Chrome but not Firefox.