Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] HTML input validity messages are not displayed to users. #20136

Closed
pocketninja opened this issue Jun 23, 2021 · 2 comments
Closed

[Bug] HTML input validity messages are not displayed to users. #20136

pocketninja opened this issue Jun 23, 2021 · 2 comments
Labels
🐞 bug Crashes, Something isn't working, .. needs:triage Issue needs triage

Comments

@pocketninja
Copy link

pocketninja commented Jun 23, 2021

Howdy,

As far as I can tell <input>/etc validation messages are never displayed to users when <form>s are submitted.

It does appear to work in Firefox for desktop (MacOS).

element.checkValidity() returns false.
element.validationMessage has the correct message I would expect in the tooltip/bubble.
element.reportValidity() returns false, but no report UI is presented to the user.

Steps to reproduce

  1. Use the following HTML in a static HTML file
<form action="/" method="POST">
<input type="text" required="required">
<input type="submit">
</form>
  1. Press the submit button

Expected behavior

Expected a message like "Please fill out this field" to be displayed, and perhaps for field to be focused.

Screenshot from Firefox in MacOS:
image

Actual behavior

Form submission is blocked, no validity message is displayed, and field is not focused.

Device information

  • Google Pixel 4a 5G, Android 11
  • Firefox for Android version: 89.1.1

┆Issue is synchronized with this Jira Task

@pocketninja pocketninja added the 🐞 bug Crashes, Something isn't working, .. label Jun 23, 2021
@github-actions github-actions bot added the needs:triage Issue needs triage label Jun 23, 2021
@Mugurell
Copy link
Contributor

I think we need GeckoView support for this.

@Mugurell
Copy link
Contributor

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1717776

Change performed by the Move to Bugzilla add-on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. needs:triage Issue needs triage
Projects
None yet
Development

No branches or pull requests

2 participants