【问题标题】:HTML5 Custom error message not displaying in Firefox 53 [duplicate]HTML5 自定义错误消息未在 Firefox 53 中显示 [重复]
【发布时间】:2017-05-05 14:12:50
【问题描述】:

我正在使用以下代码显示带有表单验证的自定义消息:

<input id="rulesRegulations1" name="rulesRegulations" title="Error" x-moz-errormessage="Error." oninvalid="this.setCustomValidity('My custom error message.');" required="required" onchange="try{setCustomValidity('')}catch(e){};" value="Y" type="checkbox">

自定义消息在 Chrome 和 IE 中显示正常,但在 Firefox 53 中显示不正常。有人知道如何解决这个问题吗?

【问题讨论】:

  • @MaxZoom:sn-p 和 setCustomValidity 内容包含在问题中的代码 sn-p 中。

标签: javascript html


【解决方案1】:

validation error bug 已在今天发布的 Firefox 53.0.2 中得到修复。

【讨论】:

  • 非常感谢Kohei。不幸的是,Firefox 53 是我所在机构当前安装在机器上的版本,因此无法进行更新。我想我们将不得不进行管理,直到他们 (IT) 决定推出新的更新。再次感谢。
猜你喜欢
  • 2016-09-19
  • 1970-01-01
  • 2017-09-25
  • 2016-07-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多