New issue
Advanced search Search tips

Issue 630329 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Keyboard input value is null when it has arithemetic operators like "+,.,-"

Reported by sirius.p...@gmail.com, Jul 21 2016

Issue description

Steps 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
 
Cc: tedc...@chromium.org
Cc: changwan@chromium.org
Components: -UI Blink>Forms>Number

Comment 3 by tkent@chromium.org, Jul 22 2016

Owner: tkent@chromium.org
Status: WontFix (was: Unconfirmed)
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