title: ScalaJS document.getElementById("editor").getAttribute("value") always returns null
body: <p>I am trying to access the value of a textarea in scalajs like so:</p>
  <pre><code>document.getElementById(&quot;editor&quot;).addEventListener(&quot;input&quot;, { (e: dom.Event) =&gt;
        console.log(e)
        console.log(document.getElementById(&quot;editor&quot;).getAttribute(&quot;value&quot;))
      })
  </code></pre>
  <p>But it always returns <code>null</code>. Not sure why!</p>
  <p>I tried the same thing in plain vanilla javascript and that seems to work just fine!</p>
  <pre><code>&lt;script&gt;
       document.getElementById(&quot;editor&quot;).addEventListener(&quot;input&quot;, function(){
          console.log(document.getElementById(&quot;editor&quot;).value);
       });
  &lt;/script&gt;
  </code></pre>
  <p>I am using scalajs version 1.3.1.</p>
  <p>Any help is appreciated. TIA.</p>