搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

HTML5 input required does not display warning messages when blank.

  • 2 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 Paul

more options

A form input with a required attribute should display a pop-up / hovering warning when the input value is blank on a submit attempt. Firefox on desktop does this fine but Android does nothing.

A form input with a required attribute should display a pop-up / hovering warning when the input value is blank on a submit attempt. Firefox on desktop does this fine but Android does nothing.

所有回覆 (2)

more options

It's easy to test with the "Try It" on this W3schools page: https://www.w3schools.com/tags/att_input_required.asp

more options

Hi

Thank you for that - I agree that it looks a little odd. I have filed this for our developers to take a look at. You can follow progress on this at https://github.com/mozilla-mobile/fenix/issues/22229