title: iFrame auto-height firefox latest
body: <p>I'm trying to create a firefox auto-height function this what i got so far:</p>
  
  <pre><code>try {
          var iframe = parent.document.getElementById('container-iframe');
          var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
          if (innerDoc.body.offsetHeight) {
              /*iframe.height = */console.log(innerDoc.body.offsetHeight + 32); //Extra height FireFox
          } else if (iframe.Document &amp;&amp; iframe.Document.body.scrollHeight) {
              /*iframe.height = */console.log(iframe.Document.body.scrollHeight);
          }
          else {
              console.log("None were found");
          }
      }
      catch(err) {
          console.log(err.message);
      }
  </code></pre>
  
  <p>This works like a charm on Chrome and Safari. But always reply None were found on the console for Firefox. I'm testing this with firefox 26 on linux and Firefox 25 on MacOS, both behave the same way.</p>
  
  <p>Is there any reason why firefox doesn't fill these values? Is there any other property i could use for this same purpose?. </p>
  
  <p>I've looked around for this, and it appears these worked for some version of firefox, but they don't anymore. </p>