Use HTMLElement for TS compatibility