Open Bug 1945348 Opened 11 days ago Updated 10 days ago

Incorrect value for valueMissing in validityState for input type=number

Categories

(Core :: DOM: Forms, defect)

Firefox 134
defect

Tracking

()

People

(Reporter: ibrahim.bendebka, Unassigned)

References

Details

Attachments

(1 file)

Attached file number2.html

Steps to reproduce:

Write an HTML input[type=number] element with the require attribute

write in it a "badInput" value like 1e

Actual results:

in js the validityState object has this values:
{"badInput":true, "customError":false, "patternMismatch":false, "rangeOverflow":false, "rangeUnderflow":false, "stepMismatch":false, "tooLong":false, "tooShort":false, "typeMismatch":false, "valid":false, "valueMissing":false}

badInput is true
valuesMissing is false
and the element value is an empy string.

Expected results:

valuesMissing should be true by my understanding

The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core

Nightly:
{"badInput":true, "customError":false, "patternMismatch":false, "rangeOverflow":false, "rangeUnderflow":false, "stepMismatch":false, "tooLong":false, "tooShort":false, "typeMismatch":false, "valid":false, "valueMissing":false}

Chrome:
{"badInput":true, "customError":false, "patternMismatch":false, "rangeOverflow":false, "rangeUnderflow":false, "stepMismatch":false, "tooLong":false, "tooShort":false, "typeMismatch":false, "valid":false, "valueMissing":true}

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1945333
Component: JavaScript Engine → DOM: Forms
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: