#29056: Required SelectDateWidget renders invalid HTML
--------------------------------+------------------------------------------
Reporter: Vlastimil Zíma | Owner: Hasan Ramezani
Type: Bug | Status: closed
Component: Forms | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------
Comment (by Carlton Gibson):
Worth noting for future reference from #31012:
> It's also important to note that the HTML generated for the
SelectDateWidget in previous versions of Django was valid per the HTML
standard. They did not contain a placeholder label option, but because
they were not a <select multiple> they always contained an option with a
selectedness set to true (usually the first option). This meant that the
required attribute generated for them was useless, since it would never
not have a value or be empty, but it did mean it was still valid HTML.
--
Ticket URL: <https://code.djangoproject.com/ticket/29056#comment:8>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.92934a6994583f4f80350559723e8325%40djangoproject.com.