> I'm not aware of any general problems with IE modifying elements in the head.

When I said "stuff in the head", I didn't really mean to emphasize the
head, just that I've experienced problems with both script and style
in IE.

> In particular, dynamic script tags have always worked fine for me -

I know $('head').append('<script type="text/javascript" src="..."></'
+ 'script>') has not worked in IE in previous versions of jQuery, but
I haven't tried it lately.

> That's a clever way to finesse the problem with IE - simply delete the
> script element and create a new one. You could probably do that for all
> browsers and skip the IE check.

True, but I assumed the not IE way would be more efficient, and I hate
writing "dumber" code to pander to IE.

Thanks for the info on doing it natively. Is this something that might
make sense to add to the jQuery core, if not just for consistency? I
don't expect jQuery to be a full String parser, but since it seems
that it pretty much already is, might it make sense to address this so
it works consistently?

--Erik

Reply via email to