Where, Iran?
What if you want to iterate over the return value of document.open? It's perfectly legal ECMAScript.
If I write a program that randomly crashes when I type in the URL of your website, should you be liable for that? Of course not. Any crash is Microsoft's fault, not the web developer's.