Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
var Document = function() {};
Document.prototype = parser.prototype;
Document.prototype = parser;
Document.prototype.__defineGetter__('body') = function() {
return this.getElementsByTagName('body')[0];
var document = new Document();
document.body; //Reference to the BODY element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment