Skip to main content

Bug Tracker

Side navigation

#12534 closed bug (fixed)

Opened September 13, 2012 10:31PM UTC

Closed September 13, 2012 10:48PM UTC

.offset() throws an error on BlackBerry5 and iOS3

Reported by: dmethvin Owned by:
Priority: blocker Milestone: 1.8.2
Component: offset Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:

After the slimming done for jQuery 1.8.0 we lost the try/catch that used to be around the call to getBoundingClientRect. Rather than throw an error on these older browsers, let's return 0,0 so they can at least stumble along.

Attachments (0)
Change History (2)

Changed September 13, 2012 10:32PM UTC by dmethvin comment:1

component: unfiledoffset
milestone: None1.8.2
priority: undecidedblocker
status: newopen

Changed September 13, 2012 10:48PM UTC by Dave Methvin comment:2

resolution: → fixed
status: openclosed

Fix #12534. Don't die on browsers lacking getBoundingClientRect.

Changeset: b0a352bfa76cbe1b65f8186d3cb90fe35a08866d