A bug with globalEval: in jquery 1.2.3
I have a <div> whose html is loaded thru an ajax call.
The html that comes back via ajax includes a <script> block that gets
run via globalEval:
This causes an exception in IE7:
=======
var head = document.getElementsByTagName("head")[0] ||
document.documentElement,
...
...
head.appendChild(script);
head.removeChild(script); // <- throws an exception (An exception of
type "htmlfile invalid argument" was no handled)
========
If I change the first line to
var head = document.documentElement,
it all works fine.
It seems that running this thru a head object in IE7 doesn't work so
well.
Please help!