Side navigation
#80 closed bug (fixed)
Opened July 19, 2006 07:17PM UTC
Closed July 28, 2006 04:06AM UTC
'f has no properties' when using parents(...)
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 1.0 |
Component: | core | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Using svn jquery, testcase is here: http://fuzz.bassistance.de/jQueryFormValidation/parentsBug.html
Problem occurs in both FF1.5 and IE6.
My research of the problem is this:
In line 873 (var t = axis[i];), undefined is assigned to t. Why that?
The assignments in axis for parents and ancestors both refer to jQuery.parents. jQuery.parents on the other hand is defined somewhere later. I did a quick test and defined that function directly in the axis object, that works. Seems to be a 'reference to a not yet defined element' problem. I tried changing the reference to a string, but that causes other errors...
Attachments (0)
Change History (4)
Changed July 22, 2006 05:04PM UTC by comment:1
component: | ajax → core |
---|---|
milestone: | → 1.0 |
version: | → 1.0 |
Changed July 26, 2006 04:08PM UTC by comment:2
priority: | major → critical |
---|
Changed July 27, 2006 05:47AM UTC by comment:3
Changed July 28, 2006 04:06AM UTC by comment:4
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed in SVN rev 163.
I confirm this problem. It effects sibling and ancestor functions. I get the 'f has no properties' error when using the following code;
$("form .validate").each(function(i) {
var x = $(this).parents(); // error is thrown
debugger;
...
jQ Version: SVN Rev 162
~ Brice