Including dojo the easy (buggy) way

While trying out Dojo using the new easy include method, I found a weird JavaScript bug in IE6:

If you use a document.write() to write two script elements on the page, then instead of running the first script followed by the second script, IE apparently runs them both at the same time. This can cause an error if the second script calls a function that is defined in the first script.

The dojo bug and some test cases are in Bug #2280.

One Response to “Including dojo the easy (buggy) way”

  1. [...] IE bug using document.write() and script elements If you use a document.write() to write two script elements on the page, then instead of running the first script followed by the second script, IE apparently runs them both at the same time. This can cause an error if the second script calls a function th (tags: javascript ie microsoft windows webdev) [...]

Leave a Reply