Opened 5 years ago

Closed 5 years ago

#17500 closed Uncategorized (wontfix)

Remove ending slashes on HTML void elements

Reported by: Claude Paroz Owned by: nobody
Component: Uncategorized Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Django 1.4 switched to HTML5. Ending slashes on void elements are now optional. See also

I suggest to remove them in HTML produced by Django.

Attachments (1)

remove-ending-slashes.tar.gz (55.1 KB) - added by Claude Paroz 5 years ago.
Remove ending slashes on void elements

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by Claude Paroz

Remove ending slashes on void elements

comment:1 Changed 5 years ago by Luke Plant

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

We didn't switch to HTML5 - we switched to HTML5 doctypes for bundled templates, especially the admin, which is quite different. We still need our output to be XHTML compliant as much as possible, because people could be using our output in XHTML templates.

Sorry for the confusion.

Note: See TracTickets for help on using tickets.
Back to Top