iamnoah / writeCapture

Utility to assist the Ajax loading of HTML containing script tags that use document.write. Mailing List: http://groups.google.com/group/writecapturejs-users
http://iamnoah.github.com/writeCapture
Other
241 stars 38 forks source link

writeCapture.proxyGetElementById = true; failing on ie6 and ie7 #6

Closed mcat closed 14 years ago

mcat commented 14 years ago

The offending line seems to be: var result = state.getEl.call(global.document,id);

It seems that IE host objects are not proper JavaScript objects in ie6 and ie7 and cannot be modified with the .call() method.

The error that IE throws is "Object doesn't support this property or method".

iamnoah commented 14 years ago

Fixed. Now we test for the error at startup and don't use call.