mirror of
https://github.com/jquery/jquery.git
synced 2026-02-17 04:01:28 -05:00
Ajax: use anchor tag for parsing urls
Fixes gh-1875 Closes gh-1880 (cherry picked from commit 5a75278e4c5359e07303fc4d8e78a1cf94f6ad65) Conflicts: src/ajax.js
This commit is contained in:
@@ -296,7 +296,7 @@ module( "ajax", {
|
||||
}
|
||||
]);
|
||||
|
||||
ajaxTest( "jQuery.ajax() - cross-domain detection", 7, function() {
|
||||
ajaxTest( "jQuery.ajax() - cross-domain detection", 8, function() {
|
||||
function request( url, title, crossDomainOrOptions ) {
|
||||
return jQuery.extend( {
|
||||
dataType: "jsonp",
|
||||
@@ -346,6 +346,10 @@ module( "ajax", {
|
||||
{
|
||||
crossDomain: true
|
||||
}
|
||||
),
|
||||
request(
|
||||
" http://otherdomain.com",
|
||||
"Cross-domain url with leading space is detected as cross-domain"
|
||||
)
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user