Fixing the lack of `HTMLElement` in IE8.