Created
October 21, 2010 17:17
-
-
Save davglass/638889 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Document = function() {}; | |
Document.prototype = parser.prototype; | |
//or | |
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