Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Bug in valid function


Project:Validation
Version:1.5.2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

The current version is :

// http://docs.jquery.com/Plugins/Validation/valid
valid: function() {
        if ( $(this[0]).is('form')) {
            return this.validate().form();
        } else {
            var valid = false;
            var validator = $(this[0].form).validate();
            this.each(function() {
valid |= validator.element(this);
            });
            return valid;
        }
    },

It should be :

// http://docs.jquery.com/Plugins/Validation/valid
valid: function() {
        if ( $(this[0]).is('form')) {
            return this.validate().form();
        } else {
            var valid = true;
            var validator = $(this[0].form).validate();
            this.each(function() {
valid &= validator.element(this);
            });
            return valid;
        }
    },

Best Regards.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

Status:active (needs more info)» fixed

Fixed in http://dev.jquery.com/changeset/6375

#2

Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.