kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

Define/explain what 'novalidate' is in the docs #244

Open taoeffect opened 8 years ago

taoeffect commented 8 years ago

I looked through every page of the docs and could only find instances of novalidate in the code as an attribute on form, but no accompanying explanation.

marktinsley commented 8 years ago

Good point. It's an HTML5 attribute.

From MDN.

This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a formnovalidate attribute on a

taoeffect commented 8 years ago

Hah! You beat me to it. I was reading a bunch of docs on it (including that one) while waiting for a response. I found this article with a bit more info on it and an example. Very curious, had never heard of this feature before.

I would still recommend adding something about it to the docs, just to explain why it's there and that no, in fact it doesn't have much to do with this plugin (perhaps giving readers this link and/or the MDN one).

kazupon commented 8 years ago

thank you for your feedback. I'll try to add explain.

blocka commented 8 years ago

Perhaps its worth it to add this attribute to the form automatically? This is what jquery validate does, and I can't see a reason why you wouldn't want it.

taoeffect commented 8 years ago

Perhaps its worth it to add this attribute to the form automatically? This is what jquery validate does, and I can't see a reason why you wouldn't want it.

+1