Modify ↓
Ticket #6441 (closed bug: worksforme)
$(selector).offset(offset_obj) does not work in IE8
| Reported by: | sayan.chaliha | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | offset | Version: | 1.4.2 |
| Keywords: | .offset() IE8 error | Cc: | |
| Blocking: | Blocked by: |
Description
Version: jQuery 1.4.2 (jquery-1.4.2.min.js)
Problem: Internet Explorer 8 throws an unspecified error when using $(selector).offset(offset_obj)
File: jquery-1.4.2.min.js Line number: 145 Error Code: 0
How to reproduce: Simply try to set the offset of a div element. For example:
var offset = $('#div1').offset(); works offsettop? += $('#div1').outerHeight(); offsetleft? += $('#div1').outerWidth(); $('#div2').offset(offset); fails
Attachments
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.


offsettop? => offset.top offsetleft? => offset.left