Bug Tracker


Ticket #12534 (closed bug: fixed)

Opened 20 months ago

Last modified 20 months ago

.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:
Blocking: Blocked by:


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.

Change History

comment:1 Changed 20 months ago by dmethvin

  • Priority changed from undecided to blocker
  • Status changed from new to open
  • Component changed from unfiled to offset
  • Milestone changed from None to 1.8.2

comment:2 Changed 20 months ago by Dave Methvin

  • Status changed from open to closed
  • Resolution set to fixed

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

Changeset: b0a352bfa76cbe1b65f8186d3cb90fe35a08866d

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.