diff --git a/src/core.js b/src/core.js index 56a2b1f1..0b27f742 100644 --- a/src/core.js +++ b/src/core.js @@ -637,7 +637,9 @@ jQuery.extend({ else script.appendChild( document.createTextNode( data ) ); - head.appendChild( script ); + // Use insertBefore instead of appendChild to circumvent an IE6 bug. + // This arises when a base node is used (#2709). + head.insertBefore( script, head.firstChild ); head.removeChild( script ); } },