updated CHTMLDocument class