jQuery: The Write Less, Do More JavaScript Library

Ticket #2216 (closed bug: fixed)

Opened 6 months ago

Last modified 6 months ago

[validate] javascript error : elem has no properties

Reported by: sluramod Assigned to: joern
Type: bug Priority: major
Milestone: 1.2.3 Component: plugin
Version: 1.2.2 Keywords: validate
Cc: Needs: Review

Description

Hello,

I'm sorry, this is my first bug report related to jquery (one of its plugins, actually).

I get 'elem has no properties' error. I traced it back to line 647 in jquery-1.2.2.js) when I use validator plugin. I think lines 21 and 27 of jquery.validate-1.2.js cause this problem; sometimes this[0] is null. Also, function delegate(event) on line 234 (line 235, actually) is potential source of problems.

Alex

Attachments

Change History

Changed 6 months ago by joern

  • owner set to joern

Changed 6 months ago by joern

  • status changed from new to closed
  • resolution set to worksforme

Could you provide a testpage or at least some testcase? Or a description of the browser in use? Without that I have to assume the error is on your side, because I can't replicate any of the problems mentioned here.

Note that 1.2 needs the delegate plugin, provided in the download as lib/jquery.delegate.js.

Changed 6 months ago by joern

  • status changed from closed to reopened
  • resolution deleted

Scott noted that at least one problem is caused by the lack of checking if this[0] is actually defined (a form is selected).

Gonna fix that.

Changed 6 months ago by joern

  • status changed from reopened to closed
  • resolution set to fixed

Fixed in [4547].

Note: See TracTickets for help on using tickets.