diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2009-03-27 18:20:57 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2009-03-27 18:20:57 +0000 |
commit | 611d24086c3837da21e0816fa3cb7b826f28da87 (patch) | |
tree | cae4abeb09ed396bbb2b7c658594101ef394261a /src | |
parent | f8ef75eb9124ce924be5fb521c783efd5c996e33 (diff) | |
download | jquery-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.js | 4 |
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; |