Skip to main content

Bug Tracker

Side navigation

#9797 closed bug (wontfix)

Opened July 11, 2011 06:13PM UTC

Closed July 12, 2011 02:32PM UTC

Last modified March 14, 2012 04:56AM UTC

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

Attachments (0)
Change History (1)

Changed July 12, 2011 02:32PM UTC by john comment:1

resolution: → wontfix
status: newclosed

Unfortunately we're not planning on fixing bugs relating to SVG any time soon:

http://docs.jquery.com/Won%27t_Fix