offsetParent not returning relative positioned ancestor
In my jQuery plugin, I'm trying to position an element absolutely within the target element's "offset parent." According to the jQuery documentation, offsetParent is supposed to return the nearest ancestor that is positioned, meaning absolute, fixed, or relative. However, when calling that function, I'm not getting the expected ancestor. The target element is located in a position: relative parent, and offsetParent is returning something further up the tree.
Is the documentation wrong? Are there any quirks that could be causing offsetParent to not work correctly? I'm seeing the problem in IE 8 and Chrome 10.