title: How to use SVGDocument in Typescript?
body: <p>According to the W3C recommendations, the method <code>getSVGDocument()</code>should return an <code>SVGDocument</code>, but the code in lib.d.ts is:</p>
  
  <pre><code>interface GetSVGDocument {
      getSVGDocument(): Document;
  }
  </code></pre>
  
  <p>So how could I do that?</p>
  
  <pre><code>var svgDoc:SVGDocument= document.getElementById('myId').getSVGDocument();
  var svgElement:SVGElement = svgDoc.getElementById("myElement");
  ... further manipulations on svgElement
  </code></pre>
  
  <p>More generally, do they passed by the SVG implementation in TypeScript or am I missing something?</p>
  
  <p>Is there any proper implementation of the SVG DOM, or how could I implement it?</p>