Skip to content

Commit e519098

Browse files
ChrisAntakimarkelog
authored andcommitted
Ajax: Remove workaround for IE6/7
Closes jquerygh-1597 Ref #8138
1 parent df62159 commit e519098

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

src/ajax.js

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ define([
1010
], function( jQuery, rnotwhite, nonce, rquery ) {
1111

1212
var
13-
// Document location
14-
ajaxLocParts,
15-
ajaxLocation,
16-
1713
rhash = /#.*$/,
1814
rts = /([?&])_=[^&]*/,
1915
rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
@@ -42,22 +38,13 @@ var
4238
transports = {},
4339

4440
// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
45-
allTypes = "*/".concat("*");
46-
47-
// Support: IE6
48-
// Exception accessing window.location.href if document.domain is set (#8138)
49-
try {
50-
ajaxLocation = location.href;
51-
} catch( e ) {
52-
// Use the href attribute of an A element
53-
// since IE will modify it given document.location
54-
ajaxLocation = document.createElement( "a" );
55-
ajaxLocation.href = "";
56-
ajaxLocation = ajaxLocation.href;
57-
}
41+
allTypes = "*/".concat( "*" ),
42+
43+
// Document location
44+
ajaxLocation = location.href,
5845

59-
// Segment location into parts
60-
ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
46+
// Segment location into parts
47+
ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
6148

6249
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
6350
function addToPrefiltersOrTransports( structure ) {

0 commit comments

Comments
 (0)