Side navigation
#12283 closed bug (fixed)
Opened August 13, 2012 02:53PM UTC
Closed August 20, 2012 03:02AM UTC
jQuery 1.8 outerHeight is returning undefined instead of null
Reported by: | PDSBGreg | Owned by: | mikesherov |
---|---|---|---|
Priority: | blocker | Milestone: | 1.8.1 |
Component: | dimensions | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Moving from jQuery 1.7.2 to 1.8 has changed the return value for outerHeight. In 1.7.2, the outerHeight of an element that does not exist on a page returns null. As of 1.8, it returns undefined. So, equations that used to work in 1.7.2 now return NaN.
Here's a jsFiddle with 1.8 selected. http://jsfiddle.net/4eUJC/1/ Switch the jQuery version to 1.7.2 to see the previously expected (working) results.
Attachments (0)
Change History (4)
Changed August 13, 2012 03:36PM UTC by comment:1
component: | unfiled → dimensions |
---|---|
milestone: | None → 1.8.1 |
priority: | undecided → blocker |
status: | new → open |
Changed August 13, 2012 06:02PM UTC by comment:2
owner: | → mikesherov |
---|---|
status: | open → assigned |
Yes, we should be returning null in these cases.