Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#12853 closed bug (notabug)

jQuery(window).height() returns incorrect height

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:


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 khoomeister

For me, this occurs in Chrome but not Firefox.

comment:2 Changed 10 years ago by khoomeister

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 mikesherov

Resolution: notabug
Status: newclosed

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 dmethvin

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 info at ytimes.com

Well, considering that it worked fine in all circumstances up until 1.8.2, I wouldn't consider this a "notabug"...

comment:6 Changed 10 years ago by khoomeister

OK thanks!

Note: See TracTickets for help on using tickets.