title: Property 'width' does not exist on type 'HTMLElement'
body: <p>The following TypeScript fails to compile:</p>
  
  <pre><code>let svg = document.createElement("svg");
  svg.width = 300;
  </code></pre>
  
  <p>Due to the error <code>Property 'width' does not exist on type 'HTMLElement'</code>. But if I change <code>svg</code> to <code>canvas</code>, for example, then it does compile, so it's something about SVGs specifically it seems...</p>
  
  <p>Any ideas?</p>