Remove useless methods in HtmlElement.