mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Ajax: use anchor tag for parsing urls
Fixes gh-1875 Closes gh-1880
This commit is contained in:
@@ -301,7 +301,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",
|
||||
@@ -351,6 +351,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