pugjs / pug

Pug – robust, elegant, feature rich template engine for Node.js
https://pugjs.org
21.68k stars 1.95k forks source link

Slef-closing tags are not closed inside <head> tag #269

Closed avetisk closed 13 years ago

avetisk commented 13 years ago

Node version: 0.4.9 Jade version: 0.13.0

Everything's in the title.

tj commented 13 years ago

seem fine to me

avetisk commented 13 years ago

I'm using jade with expressjs and here the follow code I'm using:

!!! 5
html
  head
    meta(charset='UTF-8')
    title= title
    link(rel='stylesheets/style.css')
  body!= body

It renders this:

<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Test</title><link rel="stylesheet" href="/stylesheets/style.css"></head><body></body></html>

As you can see, neither nor is properly closed—i.e and .

IMHO, it's a main issue for people writing XHTML5 and HTML5 and sending their pages as application/xhtml+xml and not text/html.