Override html5 validation

前端 未结 5 1787
野趣味
野趣味 2020-12-18 04:08

I\'m working on a simple login form, with two fields:

5条回答
  •  独厮守ぢ
    2020-12-18 04:38

    Please be advised that — even though some browsers may support the attribute novalidate on INPUT elements — the HTML code does not validate.

    According to documentation there is no such attribute. Only the FORM element may contain the novalidate attribute.

    • https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form
    • https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
    • http://www.w3.org/TR/html5/forms.html#the-form-element
    • http://www.w3.org/TR/html5/forms.html#the-input-element

提交回复
热议问题