#29036: HTML5 required validation for SelectDateWidget doesn't work if the
attribute is added by JavaScript
--------------------------------+------------------------------------
Reporter: Vlastimil Zíma | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------
Changes (by Tim Graham):
* status: closed => new
* stage: Unreviewed => Accepted
* resolution: needsinfo =>
Comment:
I guess fixing the use case you mentioned might be feasible. I've attached
an initial patch. More changes are required, for example
`SelectDateWidget.date_re` must be adapted. Someone else can continue the
work.
As for "hiding the empty label for required select is not valid", I'm not
sure what exactly the spec is saying. For example, what's a "placeholder
label option"? But yes, that seems like it would be a separate ticket,
although it couldn't be addressed until this one is fixed, I think.
--
Ticket URL: <https://code.djangoproject.com/ticket/29036#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.f84733524ee3394e0c41b265300deccb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.