Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment