ameerthehacker / ameerthehacker/jquery-simple-validator

input type=url empty field fails validation

Aperta
#3 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
JavaScript
Stelle
9
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I added a few input type=url fields to a form. There is no data in the field. The field is not marked as required. If the form is submitted, it fails saying "The url is invalid."

**Example**:
``

**Proposed fix**:
If the field is not required, then value='' could be accepted as a valid URL.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.