title: How to inherit from the DOM element class
body: <p>I want to write some Javascript classes which extend DOM nodes (so that I can then insert instances of my class directly into the DOM), but am having difficulty finding out which class/prototype I should inherit from.</p>
  
  <p>E.g.:</p>
  
  <pre><code>function myExtendedElement() {
         this.superclass = ClassA;
         this.superclass();
         delete this.superclass;
  } 
  </code></pre>
  
  <p>But what should ClassA be?</p>