title: TypeError in onloadwff using object for SVG
body: <p>I'm trying to display SVG-images on a webpage. The SVG image contain a custom font. To get Chrome (and other browsers) to load the WebFont used in the SVG I have added the following in the SVG.</p>
  
  <pre><code>&lt;defs&gt;
      &lt;style&gt;
          @import url('https://fonts.googleapis.com/css?family=&lt;font&gt;');
      &lt;/style&gt;
  &lt;/defs&gt;
  </code></pre>
  
  <p>The image is added to the HTML-page by adding an object element. This works as the font is loaded and the text in the image is rendered with the defined WebFont in both Chrome and Firefox.</p>
  
  <p>But in Chrome the following error is logged in the console:</p>
  
  <pre><code>Uncaught (in promise) TypeError: Cannot read property 'querySelectorAll' of null
      at e.getInputs (onloadwff.js:71)
      at e.&lt;anonymous&gt; (onloadwff.js:71)
      at onloadwff.js:71
      at Object.next (onloadwff.js:71)
      at a (onloadwff.js:71)
  </code></pre>
  
  <p>I have tried to search for similar issues but have come up short in finding an answer. Any ideas on what might be the issue in Chrome or how I can investigate the issue further?</p>