Bug Tracker

Modify

Ticket #80 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

'f has no properties' when using parents(...)

Reported by: anonymous Owned by:
Priority: critical Milestone: 1.0
Component: core Version: 1.0
Keywords: Cc:
Blocking: Blocked by:

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

Change History

comment:1 Changed 7 years ago by john

  • Version set to 1.0
  • Component changed from ajax to core
  • Milestone set to 1.0

comment:2 Changed 7 years ago by anonymous

  • Priority changed from major to critical

comment:3 Changed 7 years ago by brice

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

comment:4 Changed 7 years ago by john

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

Fixed in SVN rev 163.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.