title: Scala.js TypeError: $g.DOMParser is not a constructor
body: <p>I'm new to Scala.js and I'm just trying to write a test that will parse some html files. I'm trying to create a DOMParser:</p>
  
  <pre><code>val parser = new DOMParser
  </code></pre>
  
  <p>But I get the following error</p>
  
  <pre><code>scala.scalajs.js.JavaScriptException: TypeError: $g.DOMParser is not a constructor
  </code></pre>
  
  <p>DOMParser is defined as</p>
  
  <pre><code>@js.native
  class DOMParser extends js.Object {
    def parseFromString(source: String, mimeType: String): Document =   js.native
  }
  </code></pre>
  
  <p>Thank</p>