Skip to content

Commit 4a51e71

Browse files
committed
Fix typos
1 parent 8fc08ed commit 4a51e71

12 files changed

+32
-32
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Thanks for contributing! Here's a few guidelines to help your contribution get l
99

1010
## Unit Tests
1111

12-
To run unit tests, you should have a local webserver installed and pointing at your workspace. Then open `http://localhost/jquery-validation/test` to run the unit tests. Start with one browser while developing the fix, then run against others before commiting. Usually latest Chrome, Firefox, Safari and Opera and a few IEs.
12+
To run unit tests, you should have a local webserver installed and pointing at your workspace. Then open `http://localhost/jquery-validation/test` to run the unit tests. Start with one browser while developing the fix, then run against others before committing. Usually latest Chrome, Firefox, Safari and Opera and a few IEs.
1313

1414
## Linting
1515

additional-methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ jQuery.validator.addMethod("accept", function(value, element, param) {
598598
for (i = 0; i < element.files.length; i++) {
599599
file = element.files[i];
600600

601-
// Grab the mimtype from the loaded file, verify it matches
601+
// Grab the mimetype from the loaded file, verify it matches
602602
if (!file.type.match(new RegExp( ".?(" + typeParam + ")$", "i"))) {
603603
return false;
604604
}

changelog.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@
9191
* Added in support for HTML5 input types, fixes #97
9292
* Improved HTML5 support by setting novalidate attribute on the form, and reading the type attribute.
9393
* Fixed showLabel() removing all classes from error element. Remove only settings.validClass. Fixes #151.
94-
* Added 'pattern' to additional-methods to validate against arbitraty regular expressions.
94+
* Added 'pattern' to additional-methods to validate against arbitrary regular expressions.
9595
* Improved email method to not allow the dot at the end (valid by RFC, but unwanted here). Fixes #143
96-
* Fixed swedish and norwedian translations, min/max messages got switched. Fixes #181
96+
* Fixed swedish and norwegian translations, min/max messages got switched. Fixes #181
9797
* Fixed #184 - resetForm: should unset lastElement
9898
* Fixed #71 - improve existing time method and add time12h method for 12h am/pm time format
9999
* Fixed #177 - Fix validation of a single radio or checkbox input
@@ -118,7 +118,7 @@
118118
* Added Catalan (CA) localization, thanks Xavier de Pedro
119119
* Fixed missing var statements within for-in loops
120120
* Fix for remote validation, where a formatted message got messed up (https://github.com/jzaefferer/jquery-validation/issues/11)
121-
* Bugfixes for compability with jQuery 1.5.1, while maintaining backwards-compability
121+
* Bugfixes for compatibility with jQuery 1.5.1, while maintaining backwards-compatibility
122122

123123
1.7
124124
---
@@ -133,7 +133,7 @@
133133
* Renamed phone-method in additional-methods.js to phoneUS
134134
* Added phoneUK and mobileUK methods to additional-methods.js (http://plugins.jquery.com/node/12359)
135135
* Deep extend options to avoid modifying multiple forms when using the rules-method on a single element (http://plugins.jquery.com/node/12411)
136-
* Bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability
136+
* Bugfixes for compatibility with jQuery 1.4.2, while maintaining backwards-compatibility
137137

138138
1.6
139139
---
@@ -171,7 +171,7 @@
171171
* Updated multipart demo to use latest jQuery UI accordion
172172
* Added dateNL and time methods to additionalMethods.js
173173
* Added Traditional Chinese (Taiwan, tw) and Kazakhstan (KK) localization
174-
* Moved jQuery.format (fomerly 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)
174+
* 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)
175175
* Cleaned up messages_pl.js and messages_ptbr.js (still defined messages for max/min/rangeValue, which were removed in 1.4)
176176
* 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)
177177
* Enhancement $.validator.addMethod: An undefined third message-argument won't overwrite an existing message (http://plugins.jquery.com/node/8443)
@@ -186,7 +186,7 @@
186186
* Fixed messages in additional-methods.js for maxWords, minWords, and rangeWords to include call to $.format
187187
* Fixed value passed to methods to exclude carriage return (\r), same as jQuery's val() does
188188
* Added slovak (sk) localization
189-
* Added demo for intergration with jQuery UI tabs
189+
* Added demo for integration with jQuery UI tabs
190190
* Added selects-grouping example to tabs demo (see second tab, birthdate field)
191191

192192
1.5.1
@@ -195,27 +195,27 @@
195195
* Added TinyMCE integration example
196196
* Added ukrainian (ua) localization
197197
* Fixed length validation to work with trimmed value (regression from 1.5 where general trimming before validation was removed)
198-
* Various small fixes for compability with both 1.2.6 and 1.3
198+
* Various small fixes for compatibility with both 1.2.6 and 1.3
199199

200200
1.5
201201
---
202202
* Improved basic demo, validating confirm-password field after password changed
203203
* 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
204204
* Added norwegian (no), italian (it), hungarian (hu) and romanian (ro) localization
205205
* Fixed #3195: Two flaws in swedish localization
206-
* Fixed #3503: Extended rules("add") to accept messages propery: use to specify add custom messages to an element via rules("add", { messages: { required: "Required! " } });
206+
* Fixed #3503: Extended rules("add") to accept messages property: use to specify add custom messages to an element via rules("add", { messages: { required: "Required! " } });
207207
* Fixed #3356: Regression from #2908 when using meta-option
208-
* 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 compability
208+
* 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
209209
* Fixed #3516: Trigger invalid-form event even when remote validation is involved
210210
* Added invalidHandler option as a shortcut to bind("invalid-form", function() {})
211211
* Fixed Safari issue for loading indicator in ajaxSubmit-integration-demo (append to body first, then hide)
212212
* Added test for creditcard validation and improved default message
213-
* Enhanced remote validation, accepting options to passthrough to $.ajax as paramter (either url string or options, including url property plus everything else that $.ajax supports)
213+
* 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)
214214

215215
1.4
216216
---
217217
* Fixed #2931, validate elements in document order and ignore type=image inputs
218-
* Fixed usage of $ and jQuery variables, now fully comptible with all variations of noConflict usage
218+
* Fixed usage of $ and jQuery variables, now fully compatible with all variations of noConflict usage
219219
* Implemented #2908, enabling custom messages via metadata ala class="{required:true,messages:{required:'required field'}}", added demo/custom-messages-metadata-demo.html
220220
* Removed deprecated methods minValue (min), maxValue (max), rangeValue (rangevalue), minLength (minlength), maxLength (maxlength), rangeLength (rangelength)
221221
* Fixed #2215 regression: Call unhighlight only for current elements, not everything
@@ -230,7 +230,7 @@
230230
---
231231
* Fixed invalid-form event, now only triggered when form is invalid
232232
* Added spanish (es), russian (ru), portuguese brazilian (ptbr), turkish (tr), and polish (pl) localization
233-
* Added removeAttrs plugin to facilate adding and removing multiple attributes
233+
* Added removeAttrs plugin to facilitate adding and removing multiple attributes
234234
* Added groups option to display a single message for multiple elements, via groups: { arbitraryGroupName: "fieldName1 fieldName2[, fieldNameN" }
235235
* Enhanced rules() for adding and removing (static) rules: rules("add", "method1[, methodN]"/{method1:param[, method_n:param]}) and rules("remove"[, "method1[, method_n]")
236236
* Enhanced rules-option, accepts space-seperated string-list of methods, eg. {birthdate: "required date"}
@@ -241,12 +241,12 @@
241241
* Fixed creditcard validation to accept only digits and dashes ("asdf" is not a valid creditcard number)
242242
* Allow both button and input elements for cancel buttons (via class="cancel")
243243
* 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
244-
* Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compability with AIR
244+
* Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compatibility with AIR
245245

246246
1.2.1
247247
-----
248248

249-
* Bundled delegeate plugin with validate plugin - its always required anyway
249+
* Bundled delegate plugin with validate plugin - its always required anyway
250250
* Improved remote validation to include parts from the ajaxQueue plugin for proper synchronization (no additional plugin necessary)
251251
* Fixed stopRequest to prevent pendingRequest < 0
252252
* Added jQuery.validator.autoCreateRanges property, defaults to false, enable to convert min/max to range and minlength/maxlength to rangelength; this basically fixes the issue introduced by automatically creating ranges in 1.2
@@ -256,7 +256,7 @@
256256
* Improved demo, replacing metadata with classes/attributes for specifying rules
257257
* Fixed error when no custom message is used for remote validation
258258
* Modified email and url validation to require domain label and top label
259-
* Fixed url and email validation to require TLD (actually to require domain label); 1.2 version (TLD is optional) is moved to additionals as url2 and email2
259+
* Fixed url and email validation to require TLD (actually to require domain label); 1.2 version (TLD is optional) is moved to additions as url2 and email2
260260
* Fixed dynamic-totals demo in IE6/7 and improved templating, using textarea to store multiline template and string interpolation
261261
* Added login form example with "Email password" link that makes the password field optional
262262
* Enhanced dynamic-totals demo with an example of a single message for two fields
@@ -270,11 +270,11 @@
270270
* Added support for ajax-validation, see method "remote"; serverside returns JSON, true for valid elements, false or a String for invalid, String is used as message
271271
* Added highlight and unhighlight options, by default toggles errorClass on element, allows custom highlighting
272272
* Added valid() plugin method for easy programmatic checking of forms and fields without the need to use the validator API
273-
* Added rules() plguin method to read and write rules for an element (currently read only)
273+
* Added rules() plugin method to read and write rules for an element (currently read only)
274274
* Replaced regex for email method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/email_address_validation/
275275
* Restructured event architecture to rely solely on delegation, both improving performance, and ease-of-use for the developer (requires jquery.delegate.js)
276276
* Moved documentation from inline to http://docs.jquery.com/Plugins/Validation - including interactive examples for all methods
277-
* Removed validator.refresh(), validation is now completey dynamic
277+
* Removed validator.refresh(), validation is now completely dynamic
278278
* Renamed minValue to min, maxValue to max and rangeValue to range, deprecating the previous names (to be removed in 1.3)
279279
* Renamed minLength to minlength, maxLength to maxlength and rangeLength to rangelength, deprecating the previous names (to be removed in 1.3)
280280
* Added feature to merge min + max into and range and minlength + maxlength into rangelength
@@ -336,14 +336,14 @@
336336
* Fixed Opera select-issue (avoiding a attribute-collision)
337337
* Fixed problems with focussing hidden elements in IE
338338
* Added feature to skip validation for submit buttons with class "cancel"
339-
* Fixed potential issues with Google Toolbar by prefering plugin option messages over title attribute
339+
* Fixed potential issues with Google Toolbar by preferring plugin option messages over title attribute
340340
* submitHandler is only called when an actual submit event was handled, validator.form() returns false only for invalid forms
341341
* Invalid elements are now focused only on submit or via validator.focusInvalid(), avoiding all trouble with focus-on-blur
342342
* IE6 error container layout issue is solved
343343
* Customize error element via errorElement option
344344
* Added validator.refresh() to find new inputs in the form
345345
* Added accept validation method, checks file extensions
346-
* Improved dependecy feature by adding two custom expressions: ":blank" to select elements with an empty value and �:filled� to select elements with a value, both excluding whitespace
346+
* Improved dependency feature by adding two custom expressions: ":blank" to select elements with an empty value and �:filled� to select elements with a value, both excluding whitespace
347347
* Added a resetForm() method to the validator: Resets each form element (using the form plugin, if available), removes classes on invalid elements and hides all error messages
348348
* Fixed docs for validator.showErrors()
349349
* Fixed error label creation to always use html() instead of text(), allowing arbitrary HTML passed in as messages

demo/custom-messages-data-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-plugin-vali
5353
</fieldset>
5454
</form>
5555

56-
<!-- Custom message for "required" in metadata is overriden by a validate option -->
56+
<!-- Custom message for "required" in metadata is overridden by a validate option -->
5757
<form class="cmxform" id="commentForm2" method="post" action="">
5858
<fieldset>
5959
<legend>Please enter your email address</legend>

demo/dynamic-totals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
alert("submitted!");
1717
}
1818
});
19-
$.validator.messages.max = jQuery.format("Your totals musn't exceed {0}!");
19+
$.validator.messages.max = jQuery.format("Your totals mustn't exceed {0}!");
2020

2121
$.validator.addMethod("quantity", function(value, element) {
2222
return !this.optional(element) && !this.optional($(element).parent().prev().children("select")[0]);

demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ <h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-plugin-vali
195195
</fieldset>
196196
</form>
197197

198-
<h3>Syntetic examples</h3>
198+
<h3>Synthetic examples</h3>
199199
<ul>
200200
<li><a href="errorcontainer-demo.html">Error message containers in action</a></li>
201201
<li><a href="custom-messages-data-demo.html">Custom Messages as Element Data</a></li>
202202
<li><a href="radio-checkbox-select-demo.html">Radio and checkbox buttons and selects</a></li>
203-
<li><a href="ajaxSubmit-intergration-demo.html">Integration with Form Plugin (AJAX submit)</a></li>
203+
<li><a href="ajaxSubmit-integration-demo.html">Integration with Form Plugin (AJAX submit)</a></li>
204204
<li><a href="custom-methods-demo.html">Custom methods and message display.</a></li>
205205
<li><a href="dynamic-totals.html">Dynamic forms</a></li>
206206
<li><a href="themerollered.html">Forms styled with jQuery UI Themeroller</a></li>

demo/multipart/js/ui.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ $.ui.mouse = {
503503
return this.mouseDelayMet;
504504
},
505505

506-
// These are placeholder methods, to be overriden by extending plugin
506+
// These are placeholder methods, to be overridden by extending plugin
507507
_mouseStart: function(event) {},
508508
_mouseDrag: function(event) {},
509509
_mouseStop: function(event) {},

jquery.validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ $.extend($.validator, {
565565
}
566566
} catch(e) {
567567
if ( this.settings.debug && window.console ) {
568-
console.log( "Exception occured when checking element " + element.id + ", check the '" + rule.method + "' method.", e );
568+
console.log( "Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method.", e );
569569
}
570570
throw e;
571571
}

test/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ test("required with dependencies", function() {
232232
var v = jQuery("#form").validate(),
233233
method = $.validator.methods.required,
234234
e = $('#hidden2, #select1, #area2, #radio1, #check2');
235-
ok( method.call( v, e[0].value, e[0], "asffsaa" ), "Valid text input due to depencie not met" );
235+
ok( method.call( v, e[0].value, e[0], "asffsaa" ), "Valid text input due to dependency not met" );
236236
ok(!method.call( v, e[0].value, e[0], "input" ), "Invalid text input" );
237237
ok( method.call( v, e[0].value, e[0], function() { return false; }), "Valid text input due to dependency not met" );
238238
ok(!method.call( v, e[0].value, e[0], function() { return true; }), "Invalid text input" );

0 commit comments

Comments
 (0)