Skip to content

Commit d44c502

Browse files
committed
jquery core: Closes jquery#2709, avoiding a bug on IE 6 when using globalEval and a base node is found.
1 parent 3a7b09e commit d44c502

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,9 @@ jQuery.extend({
637637
else
638638
script.appendChild( document.createTextNode( data ) );
639639

640-
head.appendChild( script );
640+
// Use insertBefore instead of appendChild to circumvent an IE6 bug.
641+
// This arises when a base node is used (#2709).
642+
head.insertBefore( script, head.firstChild );
641643
head.removeChild( script );
642644
}
643645
},

0 commit comments

Comments
 (0)