Add constructor for HtmlElement.