mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Docs: Fix various spelling errors
Closes gh-2761
This commit is contained in:
parent
36a7cf9b1e
commit
aae44111e2
@ -73,7 +73,7 @@ module.exports = function( Release, files, complete ) {
|
|||||||
Release.exec( "git add .", "Error adding files." );
|
Release.exec( "git add .", "Error adding files." );
|
||||||
Release.exec(
|
Release.exec(
|
||||||
"git commit -m 'Release " + Release.newVersion + "'",
|
"git commit -m 'Release " + Release.newVersion + "'",
|
||||||
"Error commiting files."
|
"Error committing files."
|
||||||
);
|
);
|
||||||
console.log();
|
console.log();
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ jQuery.extend( {
|
|||||||
// Handle all other returned values
|
// Handle all other returned values
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Only substitue handlers pass on context
|
// Only substitute handlers pass on context
|
||||||
// and multiple values (non-spec behavior)
|
// and multiple values (non-spec behavior)
|
||||||
if ( handler !== Identity ) {
|
if ( handler !== Identity ) {
|
||||||
that = undefined;
|
that = undefined;
|
||||||
|
@ -364,7 +364,7 @@ QUnit.module( "ajax", {
|
|||||||
},
|
},
|
||||||
cache: false,
|
cache: false,
|
||||||
beforeSend: function( xhr, settings ) {
|
beforeSend: function( xhr, settings ) {
|
||||||
// Remove the random number, but ensure the cashe-buster param is there
|
// Remove the random number, but ensure the cache-buster param is there
|
||||||
var url = settings.url.replace( /\d+/, "" );
|
var url = settings.url.replace( /\d+/, "" );
|
||||||
assert.equal( url, "data/name.html?abc&devo=hat&_=#brownies", "Make sure that the URL has its hash." );
|
assert.equal( url, "data/name.html?abc&devo=hat&_=#brownies", "Make sure that the URL has its hash." );
|
||||||
return false;
|
return false;
|
||||||
|
@ -169,7 +169,7 @@ QUnit.test( "Animation.prefilter - prefilter return hooks", function( assert ) {
|
|||||||
);
|
);
|
||||||
assert.equal( TweenSpy.callCount, 0, "Returning something never creates tweens" );
|
assert.equal( TweenSpy.callCount, 0, "Returning something never creates tweens" );
|
||||||
|
|
||||||
// Test overriden usage on queues:
|
// Test overridden usage on queues:
|
||||||
prefilter.reset();
|
prefilter.reset();
|
||||||
element = jQuery( "<div>" )
|
element = jQuery( "<div>" )
|
||||||
.css( "height", 50 )
|
.css( "height", 50 )
|
||||||
|
@ -484,7 +484,7 @@ QUnit.test( "isNumeric", function( assert ) {
|
|||||||
assert.equal( t( true ), false, "Boolean true literal" );
|
assert.equal( t( true ), false, "Boolean true literal" );
|
||||||
assert.equal( t( false ), false, "Boolean false literal" );
|
assert.equal( t( false ), false, "Boolean false literal" );
|
||||||
assert.equal( t( "bcfed5.2" ), false, "Number with preceding non-numeric characters" );
|
assert.equal( t( "bcfed5.2" ), false, "Number with preceding non-numeric characters" );
|
||||||
assert.equal( t( "7.2acdgs" ), false, "Number with trailling non-numeric characters" );
|
assert.equal( t( "7.2acdgs" ), false, "Number with trailing non-numeric characters" );
|
||||||
assert.equal( t( undefined ), false, "Undefined value" );
|
assert.equal( t( undefined ), false, "Undefined value" );
|
||||||
assert.equal( t( null ), false, "Null value" );
|
assert.equal( t( null ), false, "Null value" );
|
||||||
assert.equal( t( NaN ), false, "NaN value" );
|
assert.equal( t( NaN ), false, "NaN value" );
|
||||||
|
@ -495,9 +495,9 @@ QUnit.test( "html(String) tag-hyphenated elements (Bug #1987)", function( assert
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
var j = jQuery( "<tr-multiple-hyphens><td-with-hyphen>text</td-with-hyphen></tr-multiple-hyphens>" );
|
var j = jQuery( "<tr-multiple-hyphens><td-with-hyphen>text</td-with-hyphen></tr-multiple-hyphens>" );
|
||||||
assert.ok( jQuery.nodeName( j[ 0 ], "TR-MULTIPLE-HYPHENS" ), "Tags with multiple hypens" );
|
assert.ok( jQuery.nodeName( j[ 0 ], "TR-MULTIPLE-HYPHENS" ), "Tags with multiple hyphens" );
|
||||||
assert.ok( jQuery.nodeName( j.children()[ 0 ], "TD-WITH-HYPHEN" ), "Tags with multiple hypens" );
|
assert.ok( jQuery.nodeName( j.children()[ 0 ], "TD-WITH-HYPHEN" ), "Tags with multiple hyphens" );
|
||||||
assert.equal( j.children().text(), "text", "Tags with multiple hypens behave normally" );
|
assert.equal( j.children().text(), "text", "Tags with multiple hyphens behave normally" );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( "Tag name processing respects the HTML Standard (gh-2005)", function( assert ) {
|
QUnit.test( "Tag name processing respects the HTML Standard (gh-2005)", function( assert ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user