It wold be helpful for implmenting HTMLInputElement::valueAsNumber.
I completed implementations of all of supported types.