Commit d44c5025 authored by Ariel Flesler's avatar Ariel Flesler

jquery core: Closes #2709, avoiding a bug on IE 6 when using globalEval and a base node is found.

parent 3a7b09e5
...@@ -637,7 +637,9 @@ jQuery.extend({ ...@@ -637,7 +637,9 @@ jQuery.extend({
else else
script.appendChild( document.createTextNode( data ) ); 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 ); head.removeChild( script );
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment