Rectangle 27 0

internet explorer 10 HTML5 Input type=Number Polyfill not working in IE10?


i = document.createElement("input");
i.setAttribute("type", "number");
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.

Note
Rectangle 27 0

internet explorer 10 HTML5 Input type=Number Polyfill not working in IE10?


i = document.createElement("input");
i.setAttribute("type", "number");
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.

Note