mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 01:25:10 -05:00
Ajax: .load() should trim its selector
Fixes #14773
(cherry picked from commit 3a68c114e3)
Conflicts:
src/ajax/load.js
This commit is contained in:
@@ -25,7 +25,7 @@ jQuery.fn.load = function( url, params, callback ) {
|
||||
off = url.indexOf(" ");
|
||||
|
||||
if ( off >= 0 ) {
|
||||
selector = url.slice( off, url.length );
|
||||
selector = jQuery.trim( url.slice( off ) );
|
||||
url = url.slice( 0, off );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user