fix: properly create HTML5-specific input types on IE8 and 9

Another side effect of adding tests to samples: it turned out that IE8 and IE9 were failing if a HTML5 type was used on inputs. 

I'm not sure if this is a proper fix since it looks for me like the code in place couldn't have possibly worked from the beginning, so it is quite probable that I'm seriously misunderstanding things here....