Ported HtmlElement class.