title: Getting the content of <script> element
body: <p>I've tried to use innerHTML but it returns null.
  Here's my code:</p>
  
  <pre><code>var sumScripts = gBrowser.contentDocument.getElementsByTagName("script");
    for (i = 0; i &lt; sumScripts.length; i++) { 
      var content = sumScripts[i].innerHTML;
      alert(content);
  </code></pre>
  
  <p>So I tried to get all the scripts on a webpage and print them, but it prints null each time. Does anyone know what's wrong? This is XUL JavaScript by the way.</p>
  
  <p>EDIT : Silly me. I fixed the iterator typo (changing 0 to i), thanks. It works now.</p>