Modify ↓
Ticket #9797 (closed bug: wontfix)
.offset() and .position() returning wrong values for SVG-elements
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
OS: Windows 7 64Bit
In Chrome(12.0.742.112) and FF(5.0) .offset() and .position() are returning unexpected values when called on SVG (root) elements. The resulting values are the x-coord of the most left child for the 'left' component and the y-coord of the most top child for the 'top' component.
The expected values would be the left/top position of the svg root element.
In IE9(32Bit/64Bit) the return values seems to be ok.
JS-Fiddle: http://jsfiddle.net/Ngrp2/1/
Same behaviour for jQuery versions < 1.6.2
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.

Unfortunately we're not planning on fixing bugs relating to SVG any time soon: http://docs.jquery.com/Won%27t_Fix