X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=d22f1528b8a7c14f485e66a74741850d5d6ef0c0;hb=611d24086c3837da21e0816fa3cb7b826f28da87;hp=18d0f96c2f18cdb72a3674df38158bb2c5787081;hpb=f8ef75eb9124ce924be5fb521c783efd5c996e33;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 18d0f96..d22f152 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;