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
- β Added Lithuanian (LT) localization
- β Added Greek (EL) localization (http://plugins.jquery.com/node/12319)
- β Added Latvian (LV) localization (http://plugins.jquery.com/node/12349)
- β Added Hebrew (HE) localization (http://plugins.jquery.com/node/12039)
- π Fixed Spanish (ES) localization (http://plugins.jquery.com/node/12696)
- β Added jQuery UI themerolled demo
- β Removed cmxform.js
- π Fixed four missing semicolons (http://plugins.jquery.com/node/12639)
- π Renamed phone-method in additional-methods.js to phoneUS
- β Added phoneUK and mobileUK methods to additional-methods.js (http://plugins.jquery.com/node/12359)
- π Deep extend options to avoid modifying multiple forms when using the rules-method on a single element (http://plugins.jquery.com/node/12411)
- π Bugfixes for compatibility with jQuery 1.4.2, while maintaining backwards-compatibility
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
- π Fix for http://plugins.jquery.com/node/8659
- π Fixed trailing comma in messages_cs.js
1.5.4
- π Fixed remote method bug (http://plugins.jquery.com/node/8658)
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