diff options
author | dmethvin <dave.methvin@gmail.com> | 2010-06-27 09:16:39 +0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-09-25 05:01:31 +0800 |
commit | c8c8f8458a579d8f87e7ee6b8e4510cc4e4445bb (patch) | |
tree | 464a4672782890ffa7f3010fa57ac77c54d34ca9 /src | |
parent | 033a4c41e0440106a0dffdd7328cd8b04781b45d (diff) | |
download | jquery-c8c8f8458a579d8f87e7ee6b8e4510cc4e4445bb.tar.gz jquery-c8c8f8458a579d8f87e7ee6b8e4510cc4e4445bb.zip |
For JSON and script requests, set the scriptCharset before the url so IE won't interpret it the wrong way; fixes #4855.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index 897d424da..17cccf719 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -300,10 +300,10 @@ jQuery.extend({ if ( s.dataType === "script" && type === "GET" && remote ) { var head = document.getElementsByTagName("head")[0] || document.documentElement; var script = document.createElement("script"); - script.src = s.url; if ( s.scriptCharset ) { script.charset = s.scriptCharset; } + script.src = s.url; // Handle Script loading if ( !jsonp ) { |