]> source.dussan.org Git - jquery.git/commitdiff
Docs: Fix typos found by codespell
authorDimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Tue, 27 Jun 2023 22:29:29 +0000 (00:29 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2023 22:29:29 +0000 (00:29 +0200)
Closes gh-5165

src/manipulation/domManip.js
test/unit/ajax.js
test/unit/css.js
test/unit/traversing.js

index f8dded5663a0a468644e616bfcfe123b3c969b82..65856a67dfdbe1bfa272121931884cf1e89813bc 100644 (file)
@@ -75,7 +75,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
index 471ca0e2307d01d380711453330301af86ccc6fe..99622c6ced633e19c48b9d72e36423f07c6b2127 100644 (file)
@@ -2711,7 +2711,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();
index e4a11175ffb06337b681525bf4d3690bdc3b5b57..7ba147a5e3461f97406ec58cbcf7923373442a20 100644 (file)
@@ -1409,13 +1409,13 @@ QUnit.testUnlessIE( "css('width') and css('height') should return fractional val
                "css('height') should return fractional values" );
 } );
 
-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" );
 } );
 
index 3cdd9470f5de7432026d53d9d42861e693adac1c..06974d50487858f519260d961d1b17b17b8e53f0 100644 (file)
@@ -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" );