#29038: Render HTML void elements without a solidus
------------------------------------------------+------------------------
               Reporter:  Jon Dufresne          |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Uncategorized         |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 In HTML5 syntax, the solidus for
 [https://html.spec.whatwg.org/dev/syntax.html#void-elements void elements]
 is optional and has no effect.

 As Django already uses HTML5 specific syntax (e.g. boolean attributes),
 can take advantage of other HTML5 syntax. Therefore, can render HTML tags
 without a final solidus.

 The [https://html.spec.whatwg.org/dev/syntax.html#start-tags HTML5 spec
 says]:

 > if the element is one of the void elements, or if the element is a
 foreign element, then there may be a single U+002F SOLIDUS character (/).
 This character has no effect on void elements

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29038>
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/052.c620351411973854482b6f46cd971985%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to