title: jsPDF - compatibility issues in Firefox
body: <p>jsPDF doesn't work well with the latest version of Firefox. It does not let me to download the PDF. Is there a fix on this? I tried downloading the latest version of jsPDF.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <ul>
  <li>My FF version is 32.0.3</li>
  <li>I don't get any error messages.</li>
  </ul>
  
  <p>This is the code that "downloads" the pdf. It works well in IE and Chrome:</p>
  
  <p>So I think it has nothing to do with the code. What I want to know is how can I download the pdf in Firefox.</p>
  
  <pre><code>function appendDataToPDF(div, doc, top)
  {
      html2canvas(div, {
          background: '#fff',
          onrendered: function(canvas) {
              var img = canvas.toDataURL();
              doc.addImage(img, 'JPEG', 10, top, parseInt($(div).css("width"), 10), parseInt($(div).css("height"), 10));
  
              if(top &gt; 240)
              {
                  doc.addPage();
                  top = 27;
              }
  
              div = $(div).next();
  
              if(div.length === 0)
              {
                  doc.save('doc.pdf');
              }
              else
              {
                  if(div.get(0).nodeName === 'BR')
                      div = $(div).next();
  
                  appendDataToPDF(div, doc, top);
              }
          }
      });
  }
  </code></pre>