title: can the HTML5 Canvas element be created from the Canvas constructor
body: <p>I would like to be able to make Canvas elements from the constructor so that I could make a function like this.</p>
  
  <pre><code>function createCanvasContext(height,width)
  {
     var body =  document.getElementsById('body')[0];
     var canvas = new Canvas();
     canvas.height=height;
     canvas.width = width;
     var context = canvas.getContext('2d');
     body.appendChild(canvas);
     return context;
  }
  </code></pre>
  
  <p>I get an error at the line var canvas = new Canvas() saying that 'Canvas is undefined' does HTML5 not allow creating elements from the constructor? or are there parameters that I need to pass to the constructor.  Any ideas would be great.  </p>