Note: Starting in Firefox 3.1, you can no longer use this method to append script elements that retrieve their code from anything other than chrome: URLs.
Resource: appendChild
I have been searching trying to find changelogs or discussion on this proposed change in Firefox. Unless I am misunderstanding the note on the Mozilla documentation page for appendChild, we will no longer be able to append a <script> element in the following manner:
Code: Select all
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'test.js';
document.getElementsByTagName('head')[0].appendChild(script);
Does anybody know where I can read more about this change?
Why it is being incorporated?
And does anybody have any suggested workarounds if this does indeed make it's way into production release?