with (classes) {

with (dom) {

with (html2) {

html2.HTMLDocument = function ()
{
 if (classes.HTMLDocument && classes.Document) return Document.call(this);

// IE HTMLDocuments essentially supports the spec

 var This = dom.Document.call(this);

 if (! ("defaultView" in this)) this.defaultView = dom.view.AbstractView.call(this.parentWindow);

 This.defaultView = this.defaultView;

 if (! ("URL" in This)) This.URL = This.defaultView.location.href;

 if (! ("body" in This)) This.body = this.body;

 return This;
}

}

}

}
