title: Get typed element by ID in Scala.js
body: <p>I have the HTML ID of an image element in the DOM and I'd like to get the element as an <a href="https://developer.mozilla.org/de/docs/Web/API/HTMLImageElement" rel="nofollow noreferrer"><code>HTMLImageElement</code></a>.</p>
  
  <p>I know about <code>document.querySelector(s"#$imageId")</code> but this returns a mere <a href="https://developer.mozilla.org/de/docs/Web/API/HTMLElement" rel="nofollow noreferrer"><code>HTMLElement</code></a> which is not so useful since I need to access, for example, the image's <code>src</code> attribute.</p>
  
  <p>How to I get the <em>typed</em> element from the DOM?</p>