title: AppendChild does not work!,inheriting from DOM Element object..What Am I doing wrong here?
body: <p>I am writing my custom elements which have some more methods than the standard DOM element,here is the one that inherits from the Element object</p>
  
  <pre><code>function MyObject(){
  
      return (Object.create(document.createElement("Mytag"),{
           myfunction:function(){
               return blahblah;
           }
      }));
  
  }//function for creating object ends
  
  function MyObject2(){
  
      return (Object.create(document.createElement("Mytag2"),{
          myfunction:function(){
              return blahblah;
          }
      }));
  
  }//function for creating second object ends
  
  var a=new MyObject();//statement works fine
  var b=new MyObject2();//statement works fine 
  </code></pre>
  
  <p>Now when i try to make one of these objects the child of the other I get any thing to work, rather an exception is being thrown </p>
  
  <pre><code>a.appendChild(b);
  </code></pre>