aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2009-03-27 18:20:57 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2009-03-27 18:20:57 +0000
commit611d24086c3837da21e0816fa3cb7b826f28da87 (patch)
treecae4abeb09ed396bbb2b7c658594101ef394261a /src
parentf8ef75eb9124ce924be5fb521c783efd5c996e33 (diff)
downloadjquery-611d24086c3837da21e0816fa3cb7b826f28da87.tar.gz
jquery-611d24086c3837da21e0816fa3cb7b826f28da87.zip
fix for #4378, base tag causes javascript error in IE when loading cross-domain JS via ajax
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 18d0f96c2..d22f1528b 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -275,7 +275,9 @@ jQuery.extend({
};
}
- head.appendChild(script);
+ // Use insertBefore instead of appendChild to circumvent an IE6 bug.
+ // This arises when a base node is used (#2709 and #4378).
+ head.insertBefore( script, head.firstChild );
// We handle everything using the script element injection
return undefined;