jquery-validation v1.10.0 Release Notes

Release Date: 2012-09-07 // over 11 years ago
    • Corrected French strings for nowhitespace, phoneUS, phoneUK and mobileUK based upon community feedback.
    • rename files for language_REGION according to the standard ISO_3166-1 (http://en.wikipedia.org/wiki/ISO_3166-1), for Taiwan tha language is Chinese (zh) and the region is Taiwan (TW)
    • Optimise RegEx patterns, especially for UK phone numbers.
    • Add Language Name for each file, rename the language code according to the standard ISO 639 for Estonian, Georgian, Ukrainian and Chinese (http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
    • Added croatian (HR) localization
    • Existing French translations were edited and French translations for the additional methods were added.
    • Merged in changes for specifying custom error messages in data attributes
    • Updated UK Mobile phone number regex for new numbers. Fixes #154
    • Add element to success call with test. Fixes #60
    • Fixed regex for time additional method. Fixes #131
    • resetForm now clears old previousValue on form elements. Fixes #312
    • Added checkbox test to require_from_group and changed require_from_group to use elementValue. Fixes #359
    • Fixed dataFilter response issues in jQuery 1.5.2+. Fixes #405
    • Added jQuery Mobile demo. Fixes #249
    • Deoptimize findByName for correctness. Fixes #82 - $.validator.prototype.findByName breaks in IE7
    • Added US zip code support and test. Fixes #90
    • Changed lastElement to lastActive in keyup, skip validation on tab or empty element. Fixes #244
    • Removed number stripping from stripHtml. Fixes #2
    • Fixed invalid count on invalid to valid remote validation. Fixes #286
    • Add link to file_input to demo index
    • Moved old accept method to extension additional-method, added new accept method to handle standard browser mimetype filtering. Fixes #287 and supersedes #369
    • Disables blur event when onfocusout is set to false. Test added.
    • Fixed value issue for radio buttons and checkboxes. Fixes #363
    • Added test for rangeWords and fixed regex and bounds in method. Fixes #308
    • Fixed TinyMCE Demo and added link on demo page. Fixes #382
    • Changed localization message for min/max. Fixes #273
    • Added pseudo selector for text input types to fix issue with default empty type attribute. Added tests and some test markup. Fixes #217
    • Fixed delegate bug for dynamic-totals demo. Fixes #51
    • Fix incorrect message for alphanumeric validator
    • Removed incorrect false check on required attribute
    • required attribute fix for non-html5 browsers. Fixes #301
    • Added methods "require_from_group" and "skip_or_fill_minimum"
    • Use correct iso code for swedish
    • Updated demo HTML files to use HTML5 doctype
    • Fixed regex issue for decimals without leading zeroes. Added new methods test. Fixes #41
    • Introduce a elementValue method that normalizes only string values (don't touch array value of multi-select). Fixes #116
    • Support for dynamically added submit buttons, and updated test case. Uses validateDelegate. Code from PR #9
    • Fix bad double quote in test fixtures
    • Fix maxWords method to include the upper bound, not exclude it. Fixes #284
    • Fixed grammar error in german range validator message. Fixes #315
    • Fixed handling of multiple class names for errorClass option. Test by Max Lynch. Fixes #280
    • Fix jQuery.format usage, should be $.validator.format. Fixes #329
    • Methods for 'all' UK phone numbers + UK postcodes
    • Pattern method: Convert string param to RegExp. Fixes issue #223
    • grammar error in german localization file
    • Added Estonian localization for messages
    • Improve tooltip handling on themerollered demo
    • Add type="text" to input fields without type attribute to please qSA
    • Update themerollered demo to use tooltip to show errors as overlay.
    • Update themerollered demo to use latest jQuery UI (along with newer jQuery version). Move code around to speed up page load.
    • Fixed min error message broken in Japanese.
    • Update form plugin to latest version. Enhance the ajaxSubmit demo.
    • Drop dateDE and numberDE methods from classRuleSettings, leftover from moving those to localized methods
    • Passing submit event to submitHandler callback
    • Fixed #219 - Fix valid() on elements with dependency-callback or dependency-expression.
    • Improve build to remove dist dir to ensure only the current release gets zipped up

    1.9.0

    • βž• Added Basque (EU) localization
    • βž• Added Slovenian (SL) localization
    • πŸ›  Fixed issue #127 - Finnish translations has one : instead of ;
    • πŸ›  Fixed Russian localization, minor syntax issue
    • βž• Added in support for HTML5 input types, fixes #97
    • πŸ‘Œ Improved HTML5 support by setting novalidate attribute on the form, and reading the type attribute.
    • πŸ›  Fixed showLabel() removing all classes from error element. Remove only settings.validClass. Fixes #151.
    • βž• Added 'pattern' to additional-methods to validate against arbitrary regular expressions.
    • πŸ‘Œ Improved email method to not allow the dot at the end (valid by RFC, but unwanted here). Fixes #143
    • πŸ›  Fixed swedish and norwegian translations, min/max messages got switched. Fixes #181
    • πŸ›  Fixed #184 - resetForm: should unset lastElement
    • πŸ›  Fixed #71 - improve existing time method and add time12h method for 12h am/pm time format
    • πŸ›  Fixed #177 - Fix validation of a single radio or checkbox input
    • πŸ›  Fixed #189 - :hidden elements are now ignored by default
    • πŸ›  Fixed #194 - Required as attribute fails if jQuery>=1.6 - Use .prop instead of .attr
    • πŸ›  Fixed #47, #39, #32 - Allowed credit card numbers to contain spaces as well as dashes (spaces are commonly input by users).

    1.8.1

    • βž• Added Thai (TH) localization, fixes #85
    • βž• Added Vietnamese (VI) localization, thanks Ngoc
    • πŸ›  Fixed issue #78. Error/Valid styling applies to all radio buttons of same group for required validation.
    • πŸ‘ Don't use form.elements as that isn't supported in jQuery 1.6 anymore. Its buggy as hell anyway (IE6-8: form.elements === form).

    1.8.0

    • πŸ‘Œ Improved NL localization (http://plugins.jquery.com/node/14120)
    • βž• Added Georgian (GE) localization, thanks Avtandil Kikabidze
    • βž• Added Serbian (SR) localization, thanks Aleksandar Milovac
    • βž• Added ipv4 and ipv6 to additional methods, thanks Natal NgΓ©tal
    • βž• Added Japanese (JA) localization, thanks Bryan Meyerovich
    • βž• Added Catalan (CA) localization, thanks Xavier de Pedro
    • πŸ›  Fixed missing var statements within for-in loops
    • πŸ›  Fix for remote validation, where a formatted message got messed up (https://github.com/jzaefferer/jquery-validation/issues/11)
    • πŸ›  Bugfixes for compatibility with jQuery 1.5.1, while maintaining backwards-compatibility

    1.7

    1.6

    • βž• Added Arabic (AR), Portuguese (PTPT), Persian (FA), Finnish (FI) and Bulgarian (BR) localization
    • ⚑️ Updated Swedish (SE) localization (some missing html iso characters)
    • πŸ›  Fixed $.validator.addMethod to properly handle empty string vs. undefined for the message argument
    • πŸ›  Fixed two accidental global variables
    • ✨ Enhanced min/max/rangeWords (in additional-methods.js) to strip html before counting; good when counting words in a richtext editor
    • Added localized methods for DE, NL and PT, removing the dateDE and numberDE methods (use messages_de.js and methods_de.js with date and number methods instead)
    • πŸ›  Fixed remote form submit synchronization, kudos to Matas Petrikas
    • πŸ‘Œ Improved interactive select validation, now validating also on click (via option or select, inconsistent across browsers); doesn't work in Safari, which doesn't trigger a click event at all on select elements; fixes http://plugins.jquery.com/node/11520
    • ⚑️ Updated to latest form plugin (2.36), fixing http://plugins.jquery.com/node/11487
    • πŸ”Œ Bind to blur event for equalTo target to revalidate when that target changes, fixes http://plugins.jquery.com/node/11450
    • πŸ”Œ Simplified select validation, delegating to jQuery's val() method to get the select value; should fix http://plugins.jquery.com/node/11239
    • πŸ›  Fixed default message for digits (http://plugins.jquery.com/node/9853)
    • πŸ›  Fixed issue with cached remote message (http://plugins.jquery.com/node/11029 and http://plugins.jquery.com/node/9351)
    • πŸ›  Fixed a missing semicolon in additional-methods.js (http://plugins.jquery.com/node/9233)
    • βž• Added automatic detection of substitution parameters in messages, removing the need to provide format functions (http://plugins.jquery.com/node/11195)
    • πŸ›  Fixed an issue with :filled/:blank somewhat caused by Sizzle (http://plugins.jquery.com/node/11144)
    • βž• Added an integer method to additional-methods.js (http://plugins.jquery.com/node/9612)
    • πŸ›  Fixed errorsFor method where the for-attribute contains characters that need escaping to be valid inside a selector (http://plugins.jquery.com/node/9611)

    1.5.5

    1.5.4

    1.5.3

    • πŸ›  Fixed a bug related to the wrapper-option, where all ancestor-elements that matched the wrapper-option where selected (http://plugins.jquery.com/node/7624)
    • ⚑️ Updated multipart demo to use latest jQuery UI accordion
    • βž• Added dateNL and time methods to additionalMethods.js
    • βž• Added Traditional Chinese (Taiwan, tw) and Kazakhstan (KK) localization
    • πŸ‘€ Moved jQuery.format (formerly String.format) to jQuery.validator.format, jQuery.format is deprecated and will be removed in 1.6 (see http://code.google.com/p/jquery-utils/issues/detail?id=15 for details)
    • Cleaned up messages_pl.js and messages_ptbr.js (still defined messages for max/min/rangeValue, which were removed in 1.4)
    • πŸ›  Fixed flawed boolean logic in valid-plugin-method for multiple elements; now all elements need to be valid for a boolean-true result (http://plugins.jquery.com/node/8481)
    • ✨ Enhancement $.validator.addMethod: An undefined third message-argument won't overwrite an existing message (http://plugins.jquery.com/node/8443)
    • ✨ Enhancement to submitHandler option: When used, click events on submit buttons are captured and the submitting button is inserted into the form before calling submitHandler, and removed afterwards; keeps submit buttons intact (http://plugins.jquery.com/node/7183#comment-3585)
    • βž• Added option validClass, default "valid", which adds that class to all valid elements, after validation (http://dev.jquery.com/ticket/2205)
    • βž• Added creditcardtypes method to additionalMethods.js, including tests (via http://dev.jquery.com/ticket/3635)
    • πŸ‘Œ Improved remote method to allow serverside message as a string, or true for valid, or false for invalid using the clientside defined message (http://dev.jquery.com/ticket/3807)
    • πŸ‘Œ Improved accept method to also accept a Drupal-style comma-separated list of values (http://plugins.jquery.com/node/8580)

    1.5.2

    • πŸ›  Fixed messages in additional-methods.js for maxWords, minWords, and rangeWords to include call to $.format
    • πŸ›  Fixed value passed to methods to exclude carriage return (\r), same as jQuery's val() does
    • βž• Added slovak (sk) localization
    • βž• Added demo for integration with jQuery UI tabs
    • βž• Added selects-grouping example to tabs demo (see second tab, birthdate field)

    1.5.1

    • ⚑️ Updated marketo demo to use invalidHandler option instead of binding invalid-form event
    • βž• Added TinyMCE integration example
    • βž• Added ukrainian (ua) localization
    • πŸ›  Fixed length validation to work with trimmed value (regression from 1.5 where general trimming before validation was removed)
    • πŸ›  Various small fixes for compatibility with both 1.2.6 and 1.3

    1.5

    • πŸ‘Œ Improved basic demo, validating confirm-password field after password changed
    • πŸ›  Fixed basic validation to pass the untrimmed input value as the first parameter to validation methods, changed required accordingly; breaks existing custom method that rely on the trimming
    • βž• Added norwegian (no), italian (it), hungarian (hu) and romanian (ro) localization
    • πŸ›  Fixed #3195: Two flaws in swedish localization
    • πŸ›  Fixed #3503: Extended rules("add") to accept messages property: use to specify add custom messages to an element via rules("add", { messages: { required: "Required! " } });
    • πŸ›  Fixed #3356: Regression from #2908 when using meta-option
    • πŸ›  Fixed #3370: Added ignoreTitle option, set to skip reading messages from the title attribute, helps to avoid issues with Google Toolbar; default is false for compatibility
    • πŸ›  Fixed #3516: Trigger invalid-form event even when remote validation is involved
    • βž• Added invalidHandler option as a shortcut to bind("invalid-form", function() {})
    • πŸ›  Fixed Safari issue for loading indicator in ajaxSubmit-integration-demo (append to body first, then hide)
    • βž• Added test for creditcard validation and improved default message
    • ✨ Enhanced remote validation, accepting options to passthrough to $.ajax as parameter (either url string or options, including url property plus everything else that $.ajax supports)

    1.4

    • πŸ›  Fixed #2931, validate elements in document order and ignore type=image inputs
    • πŸ›  Fixed usage of $ and jQuery variables, now fully compatible with all variations of noConflict usage
    • πŸ“‡ Implemented #2908, enabling custom messages via metadata ala class="{required:true,messages:{required:'required field'}}", added demo/custom-messages-metadata-demo.html
    • βœ‚ Removed deprecated methods minValue (min), maxValue (max), rangeValue (rangevalue), minLength (minlength), maxLength (maxlength), rangeLength (rangelength)
    • πŸ›  Fixed #2215 regression: Call unhighlight only for current elements, not everything
    • Implemented #2989, enabling image button to cancel validation
    • πŸ›  Fixed issue where IE incorrectly validates against maxlength=0
    • βž• Added czech (cs) localization
    • Reset validator.submitted on validator.resetForm(), enabling a full reset when necessary
    • πŸ›  Fixed #3035, skipping all falsy attributes when reading rules (0, undefined, empty string), removed part of the maxlength workaround (for 0)
    • βž• Added dutch (nl) localization (#3201)

    1.3

    • πŸ›  Fixed invalid-form event, now only triggered when form is invalid
    • βž• Added spanish (es), russian (ru), portuguese brazilian (ptbr), turkish (tr), and polish (pl) localization
    • βž• Added removeAttrs plugin to facilitate adding and removing multiple attributes
    • βž• Added groups option to display a single message for multiple elements, via groups: { arbitraryGroupName: "fieldName1 fieldName2[, fieldNameN" }
    • 🚚 Enhanced rules() for adding and removing (static) rules: rules("add", "method1[, methodN]"/{method1:param[, method_n:param]}) and rules("remove"[, "method1[, method_n]")
    • ✨ Enhanced rules-option, accepts space-separated string-list of methods, eg. {birthdate: "required date"}
    • πŸ›  Fixed checkbox group validation with inline rules: As long as the rules are specified on the first element, the group is now properly validated on click
    • πŸ›  Fixed #2473, ignoring all rules with an explicit parameter of boolean-false, eg. required:false is the same as not specifying required at all (it was handled as required:true so far)
    • πŸ›  Fixed #2424, with a modified patch from #2473: Methods returning a dependency-mismatch don't stop other rules from being evaluated anymore; still, success isn't applied for optional fields
    • πŸ›  Fixed url and email validation to not use trimmed values
    • πŸ›  Fixed creditcard validation to accept only digits and dashes ("asdf" is not a valid creditcard number)
    • πŸ‘ Allow both button and input elements for cancel buttons (via class="cancel")
    • πŸ›  Fixed #2215: Fixed message display to call unhighlight as part of showing and hiding messages, no more visual side-effects while checking an element and extracted validator.checkForm to validate a form without UI sideeffects
    • Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compatibility with AIR