Skip to content
Permalink
Browse files
jquery core: Closes #2709, avoiding a bug on IE 6 when using globalEv…
…al and a base node is found.
  • Loading branch information
flesler committed May 16, 2008
1 parent 3a7b09e commit d44c502
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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 );
}
},

0 comments on commit d44c502

Please sign in to comment.