IE bugfix HTMLelement

Bugfix for older versions of IE with HTMLelement