title: Fabric.js creating image from SVG element failure
body: <p>Fabric <a href="http://fabricjs.com/docs/fabric.Image.html#.fromElement" rel="nofollow noreferrer">docs</a> suggest it might be possible to create an image from an SVG element using <code>fabric.Image.fromElement(element, optionsopt, callback) → {fabric.Image}</code></p>
  
  <p>I seem to be running into <code>TypeError: t.getAttribute is not a function</code> when trying to test it out.</p>
  
  <p>Any idea what I might be doing wrong? Does this method possibly not do what I think it does?</p>
  
  <p><strong>Code sample:</strong></p>
  
  <pre><code>fetch('https://s3-us-west-2.amazonaws.com/s.cdpn.io/106114/tiger.svg')
    .then((response) =&gt; response.text())
    .then((svg) =&gt; {
      fabric.Image.fromElement(svg, (image) =&gt; {
        console.log('image: ', image);
      });
    })
    .catch(function(error) {
      console.log(error);
    });
  </code></pre>
  
  <p><strong>In a pen:</strong>
  <a href="https://codepen.io/sheepgobeep/pen/GwNOeE" rel="nofollow noreferrer">https://codepen.io/sheepgobeep/pen/GwNOeE</a></p>