change API of HtmlElement