input[type=number] should not accept numbers ending with '.'.

https://html.spec.whatwg.org/multipage/infrastructure.html#floating-point-numbers
> 1. Optionally, a U+002D HYPHEN-MINUS character (-).
> 2. One or both of the following, in the given order:
>   1. A series of one or more ASCII digits.
>   2. Both of the following, in the given order:
>     1. A single U+002E FULL STOP character (.).
>     2. A series of one or more ASCII digits.
> 3. Optionally:
>   1. Either a U+0065 LATIN SMALL LETTER E character (e) or a U+0045 LATIN
>      CAPITAL LETTER E character (E).
>   2. Optionally, a U+002D HYPHEN-MINUS character (-) or U+002B PLUS SIGN
>      character (+).
>   3. A series of one or more ASCII digits.

If '.' exists, digits must follow it.

BUG=529686

Review URL: https://codereview.chromium.org/1378613005

Cr-Commit-Position: refs/heads/master@{#351522}
4 files changed