I am trying to extend the DOM. I "subclassed" from the Div element:
var Subclass = function() {}
Subclass.prototype = document.createElement('div');
Subclass.constructor = Subclass;
var obj = new Subclass();
var obj.innerHTML = 'test';
document.body.appendChild(obj); // Exception: Node cannot be inserted ... point in the hierarchy
So if an object's prototype being a DOM object won't do, what is the requirement for an object to be inserted into the DOM?