Thanks. 

How about using "iframe.contentDocument.write" instead of a separate html file to work around this issue?