mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: Closes #2709, avoiding a bug on IE 6 when using globalEval and a base node is found.
This commit is contained in:
parent
3a7b09e5c7
commit
d44c5025c4
@ -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 );
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user