Set element type to HTMLElement