#31101: {% csrf_token %} fails validation for xhtml
-------------------------------------+-------------------------------------
     Reporter:  Ruben Garcia         |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  CSRF                 |                  Version:  3.0
     Severity:  Normal               |               Resolution:
     Keywords:  xhtml, csrf          |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Ruben Garcia):

 Form generation is also affected and
 https://docs.djangoproject.com/en/3.0/topics/forms/
 does not mention how to switch from
 <input type="submit" value="OK">
 to
 <input type="submit" value="OK"/>

 A general variable to indicate whether to generate html or xhtml code
 throughout the django template system may be the best solution.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31101#comment:1>
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/069.842617122b3ffaadba44a768d15f6e28%40djangoproject.com.

Reply via email to