#10781: Wrong way to style forms demonstrated in docs
------------------------------------+---------------------------------------
          Reporter:  boxed          |         Owner:  nobody
            Status:  closed         |     Milestone:        
         Component:  Documentation  |       Version:  SVN   
        Resolution:  invalid        |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  1     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 The documentation includes example code for the common cases. If you're
 doing something unusual, such as a form with no visible variables, then,
 yes, you'll need to make adjustments. At that level, it's reasonable to
 expect the developer to know what they're doing. We cannot cover every
 possible use of features in the example code and it's more important to
 provide clues for those who are going to need them and not provide
 incorrect examples.

 Your proposed change would be incorrect, as it creates an invalid HTML
 form: form elements cannot contain input elements directly, the latter
 must be inside a block element (e.g. the div). That is why it's
 constructed the way it is.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10781#comment:2>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to