Skip to main content

Bug Tracker

Side navigation

#13192 closed bug (duplicate)

Opened January 11, 2013 01:11PM UTC

Closed January 11, 2013 02:34PM UTC

Last modified January 11, 2013 03:06PM UTC

$(window).height() and $(window).width() returning 0 in IE9

Reported by: law@interresearch.dk Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

From jquery version 1.8.0 and above $(window).height() and $(window).width() returns 0 in IE9. It works in Firefox however.

Please see these examples:

https://www.defgo.net/demo/201301/1.7.0jquery.min.html (works correctly)

https://www.defgo.net/demo/201301/1.7.2jquery.min.html (works correctly)

https://www.defgo.net/demo/201301/1.8.0jquery.min.html (does not work, returns 0 in IE9)

https://www.defgo.net/demo/201301/1.8.3jquery.min.html (does not work, returns 0 in IE9)

Attachments (0)
Change History (4)

Changed January 11, 2013 02:34PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #12388.You're in quirks mode. jQuery doesn't support quirks mode. Never has supported quirks mode. The jQuery Migrate plugin would tell you you're in quirks mode, you could use that.

Changed January 11, 2013 02:57PM UTC by law@interresearch.dk comment:2

You are right about me being in quirks mode. (it works if I change it to e.g. IE9 Standards).

But you did previously (in 1.7.2 and earlier) support quirks mode (or at least the $(window).height() and $(window).width() worked correctly in quircks mode under those versions).

Changed January 11, 2013 03:00PM UTC by dmethvin comment:3

There is a big difference between supporting something and it happening to work.

Changed January 11, 2013 03:06PM UTC by law@interresearch.dk comment:4

True