I got Test.Harness.Browser working with IE 6 SP 2 today, but decided to spend a
bit of time trying to get it working with the DOM script inclusion approach
instead of the XMLHttpRequest approach. The code that causes the problem is this
pre is a pre element generated with the DOM API):
This works great in Firefox, but IE 6 doesn’t like the call to
It says, “Unexpected call to method or property access.” So I tried to replace
that line with:
el.innerHTML = "window.onload(null, Test);";
Firefox is still happy, but now IE 6 says, “Unknown runtime error.” If I try to
just append a script tag to
pre.innerHTML, I get no error, but the code
doesn’t seem to execute, either. In fact, pre.innerHTML appears to be empty!
Anyone have any idea how I can dynamically write to a script element that I’ve created via the DOM?
Looking for the comments? Try the old layout.