git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a7b09e
)
jquery core: Closes #2709, avoiding a bug on IE 6 when using globalEval and a base...
author
Ariel Flesler
<aflesler@gmail.com>
Fri, 16 May 2008 18:37:11 +0000
(18:37 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Fri, 16 May 2008 18:37:11 +0000
(18:37 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
56a2b1f
..
0b27f74
100644
(file)
--- a/
src/core.js
+++ b/
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 );
}
},