CMS-1653 Improve typescript HTMLElement api
CMS-1653 Improve typescript HTMLElement api