Opened 3 years ago

Closed 3 years ago

#17500 closed Uncategorized (wontfix)

Remove ending slashes on HTML void elements

Reported by: claudep 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

Description

Django 1.4 switched to HTML5. Ending slashes on void elements are now optional. See also http://www.w3.org/TR/html-markup/syntax.html#syntax-elements.

I suggest to remove them in HTML produced by Django.

Attachments (1)

remove-ending-slashes.tar.gz (55.1 KB) - added by claudep 3 years ago.
Remove ending slashes on void elements

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by claudep

Remove ending slashes on void elements

comment:1 Changed 3 years ago by lukeplant

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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