title: Getting object null for iframe.contentDocument iframe created iframe using jsdom with required options
body: <pre><code>var elementFrame = window.document.createElement('iframe');
      elementFrame.style.display = 'none';
      elementFrame = window.document.body.insertBefore(elementFrame, null);
  
  if (elementFrame.contentDocument) {
      element = elementFrame.contentDocument;
  } else if (element.contentWindow) {
      element = elementFrame.contentWindow.document;
  }
  
  console.log("Element **********" + element);
  </code></pre>
  
  <p>I am using jsdom with required parameters </p>
  
  <pre><code>var path = require("path");
      global.jsdom = require("jsdom");
      global.jsdom.defaultDocumentFeatures = {
          ProcessExternalResources: true,
          ProcessExternalResources : ['script', 'frame', 'iframe'],
          FetchExternalResources : ['script','img','css','frame','iframe','link'],
          MutationEvents: true,
          QuerySelector : true
      };
  </code></pre>
  
  <p>I am getting null for contentDocument. What should I do to get the html object for iframe in jsdom?</p>