#11177: widget attributes -------------------+-------------------------------------------------------- Reporter: fback | Owner: nobody Status: new | Milestone: Component: Forms | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | -------------------+-------------------------------------------------------- There are at least two attributes (disabled and readonly, anything else?) for misc. form fields that don't have parameter. Because attrs is a dictionary, every key needs a value. When value is set to None, it finally renders to {{{attribute="None"}}}:
There should be a way to pass attributes without value (maybe using None as a value?). Current e.g. {{{<input disabled="1" name="fred" value="stone">}}} works under every browser I was able to test, but it doesn't change the fact it's not valid html. -- Ticket URL: <http://code.djangoproject.com/ticket/11177> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---