Keyboard input value is null when it has arithemetic operators like "+,.,-"
Reported by
sirius.p...@gmail.com,
Jul 21 2016
|
|||
Issue descriptionSteps to reproduce the problem: 1. <input type="number" id="keyEnter1"/> 2. Enter + or . or - in the input value field 3. Trigger a function on keydown, keypress or keyup event 4. While debugging, input.value gives null What is the expected behavior? Input value should be the value present in the value field What went wrong? Input value is null when the keydown, keypress or keyup events are triggered Did this work before? N/A Chrome version: 51.0.2704.81 Channel: n/a OS Version: 6.0.1 Flash Version: Shockwave Flash 22.0 r0
,
Jul 21 2016
,
Jul 22 2016
This is by design. If a user-input string isn't a valid number, |value| IDL attribute returns an empty string by sanitization algorithm. See also Issue 365196. |
|||
►
Sign in to add a comment |
|||
Comment 1 by rsgav...@chromium.org
, Jul 21 2016