i = document.createElement("input");
if (i.type === "text")
@brushleaf The spinners are an enhancement that some browsers add to the control, but they're not a required UI for the control itself. The number control is defined by its behavior, rather than its presentation.
If you want this tool to progressively enhance the interface for this control in Internet Explorer, you will need to make make the condition resolve to true.
Ok, the condition should be changed. But what is a good one for IE ?
The problem is evident from the start:
The result of i.type in Internet Explorer 10 is "number," meaning Internet Explorer 10 actually supports the number input type this is further confirmed by consulting their documentation. You can even confirm that the functionality is in place by trying to put letters into a number input they'll be removed when the element loses focus.