title: iframe contentDocument and contentWindow is null
body: <p>I am trying to access iframe's contentDocument and contentWindow in following code. But they both are null. </p>
  
  <pre><code>    var iframe = document.createElement('iframe');
      this.get__domElement$i().appendChild(iframe);
      if (iframe.contentDocument) {
           iframe.contentDocument.write("Hello");
       }
      else if (iframe.contentWindow) {
           iframe.contentWindow.document.body.innerHTML = "Hello";
       }
  </code></pre>
  
  <p>Can someone tell me whats wrong in this? Thanks</p>
  
  <p>When i do Document.Body.AppendChild(iframe), then contentDocument and contentWindow are non null. </p>
  
  <p>Can someone tell me whats wrong when i append the iframe to div?  </p>
  
  <p>Thanks a lot.</p>