Bug Tracker

Ticket #9797 (closed bug: wontfix)

Opened 4 years ago

Last modified 4 years ago

.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:


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

comment:1 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to wontfix

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

Note: See TracTickets for help on using tickets.