Modify ↓
Ticket #2999 (closed bug: worksforme)
Exception when using .poistion()
| Reported by: | jrvan | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | offset | Version: | 1.2.6 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I'm using the latest nightly build, and it's also present in release build. I'm calling the new .position() function and getting this exception:
Error: uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :
Change History
comment:1 in reply to: ↑ description Changed 5 years ago by jrvan
comment:2 Changed 5 years ago by flesler
- need changed from Review to Test Case
- Owner set to brandon
- Component changed from core to offset
Your details are not quite enough to be able to handle this. Could you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem. Thanks.
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.

Replying to jrvan:
I done some testing on it, I identified line 3464 as the problem (In the nightly build). This line:
// Get correct offsets offset = this.offset(), parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();Specifically I think it is this part of that line causing the exception: