fix for #4378, base tag causes javascript error in IE when loading cross-domain JS via ajax

This commit is contained in:
Brandon Aaron 2009-03-27 18:20:57 +00:00
parent f8ef75eb91
commit 611d24086c

View file

@ -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;