Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.