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({
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 );
}
},
......
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