input type="number" with currency formatting (thousands delimiters)
<p>This has already been asked numerously and lots of examples have been provided, either with tons of JavaScript, or using the <code>inputmode</code> or the <code>pattern</code> attribute with some regex. However, none of these seem to work together with the numeric keyboard (at least not on my iPhone).</p>

<p>Therefore my question: is this impossible? <em>(in plain and simple HTML5)</em></p>

<p>I need an <code>&lt;input&gt;</code> for currency with on-the-fly formatting, to edit numbers like this: <code>1,000,000.00</code> or, when changing the country, to <code>1 234 567,89</code> <strong>AND</strong> the numeric keyboard appears (important for mobiles). Notice the thousands separators.</p>