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 d44c5025c42645a6e2b6e664b689669c3752b236
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core.js
@@ -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.
You can’t perform that action at this time.