Skip to content

Commit

Permalink
Docs: Fix typos found by codespell
Browse files Browse the repository at this point in the history
Closes gh-5165

(cherry picked from commit 620870a)
  • Loading branch information
DimitriPapadopoulos authored and mgol committed Jun 27, 2023
1 parent 5aa7d93 commit 4a29888
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/manipulation.js
Expand Up @@ -177,7 +177,7 @@ function domManip( collection, args, callback, ignored ) {
if ( hasScripts ) {
doc = scripts[ scripts.length - 1 ].ownerDocument;

// Reenable scripts
// Re-enable scripts
jQuery.map( scripts, restoreScript );

// Evaluate executable scripts on first document insertion
Expand Down
2 changes: 1 addition & 1 deletion test/unit/ajax.js
Expand Up @@ -2586,7 +2586,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re
} );

QUnit.test(
"jQuery#load() - always use GET method even if it overrided through ajaxSetup (trac-11264)",
"jQuery#load() - always use GET method even if overridden through ajaxSetup (trac-11264)",
function( assert ) {
assert.expect( 1 );
var done = assert.async();
Expand Down
6 changes: 3 additions & 3 deletions test/unit/css.js
Expand Up @@ -1446,13 +1446,13 @@ testIframe(
} );
} )();

QUnit.test( "certain css values of 'normal' should be convertable to a number, see trac-8627", function( assert ) {
QUnit.test( "certain css values of 'normal' should be convertible to a number, see trac-8627", function( assert ) {
assert.expect( 3 );

var el = jQuery( "<div style='letter-spacing:normal;font-weight:normal;'>test</div>" ).appendTo( "#qunit-fixture" );

assert.ok( !isNaN( parseFloat( el.css( "letterSpacing" ) ) ), "css('letterSpacing') not convertable to number, see trac-8627" );
assert.ok( !isNaN( parseFloat( el.css( "fontWeight" ) ) ), "css('fontWeight') not convertable to number, see trac-8627" );
assert.ok( !isNaN( parseFloat( el.css( "letterSpacing" ) ) ), "css('letterSpacing') not convertible to number, see trac-8627" );
assert.ok( !isNaN( parseFloat( el.css( "fontWeight" ) ) ), "css('fontWeight') not convertible to number, see trac-8627" );
assert.equal( typeof el.css( "fontWeight" ), "string", ".css() returns a string" );
} );

Expand Down
4 changes: 2 additions & 2 deletions test/unit/traversing.js
Expand Up @@ -190,8 +190,8 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "is() with :has() selectors",

assert.ok( jQuery( "#foo" ).is( ":has(p)" ), "Check for child: Expected a child 'p' element" );
assert.ok( !jQuery( "#foo" ).is( ":has(ul)" ), "Check for child: Did not expect 'ul' element" );
assert.ok( jQuery( "#foo" ).is( ":has(p):has(a):has(code)" ), "Check for childs: Expected 'p', 'a' and 'code' child elements" );
assert.ok( !jQuery( "#foo" ).is( ":has(p):has(a):has(code):has(ol)" ), "Check for childs: Expected 'p', 'a' and 'code' child elements, but no 'ol'" );
assert.ok( jQuery( "#foo" ).is( ":has(p):has(a):has(code)" ), "Check for children: Expected 'p', 'a' and 'code' child elements" );
assert.ok( !jQuery( "#foo" ).is( ":has(p):has(a):has(code):has(ol)" ), "Check for children: Expected 'p', 'a' and 'code' child elements, but no 'ol'" );

assert.ok( jQuery( "#foo" ).is( jQuery( "div:has(p)" ) ), "Check for child: Expected a child 'p' element" );
assert.ok( !jQuery( "#foo" ).is( jQuery( "div:has(ul)" ) ), "Check for child: Did not expect 'ul' element" );
Expand Down

0 comments on commit 4a29888

Please sign in to comment.