Open Bug 1711091 Opened 4 years ago Updated 1 year ago

[Bug] HTML Required attribute breaks if first option has no `value`

Categories

(GeckoView :: General, defect, P2)

Unspecified
Android
defect

Tracking

(Not tracked)

People

(Reporter: kbrosnan, Assigned: m_kato)

References

(Depends on 1 open bug)

Details

(Whiteboard: [geckoview:m94?] [geckoview:2022h2?])

Attachments

(1 obsolete file)

From github: https://github.com/mozilla-mobile/fenix/issues/19473.

Steps to reproduce

Try to submit a form with a select element that has the required attribute where the first option has no value="".

Demo: https://www.michaelsinclair.com/select_bug_demo.html

Expected behavior

The user should be prompted to choose an item in the list, and the form should be prevented from being submitted.

Actual behavior

The form is prevented from being submitted (as expected), but the user is not prompted to choose an item, leaving them without any context clues as to why the form won't submit.

Device information

  • Device vendor / model and Android version: Samsung Note 8, Android 9
  • Firefox for Android version: 88.1.3 (Build #2015808507)

Happens on other Android devices and versions as well.

Change performed by the Move to Bugzilla add-on.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [geckoview:m93?]
Whiteboard: [geckoview:m93?] → [geckoview:m94?]
Depends on: 1510450
Whiteboard: [geckoview:m94?] → [geckoview:m94?] [geckoview:2022h2?]

Assigning this bug to Makoto. He will decide whether we need to prioritize it for 2022 H2.

Assignee: nobody → m_kato
Attachment #9387213 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: