Add public methods for HtmlElement.