Skip to content

Commit 3ed0a8f

Browse files
tom-pangweavejester
authored andcommitted
added html5 to the list of doctypes
1 parent 6bd4a32 commit 3ed0a8f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/compojure/html/page_helpers.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
(str "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" "
2020
"\"http://www.w3.org/TR/html4/strict.dtd\">\n")
2121

22+
:html5
23+
(str "<!DOCTYPE html>")
24+
2225
:xhtml-strict
2326
(str "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" "
2427
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n")

test/compojure/html/page_helpers.clj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
(str "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" "
1313
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"))))
1414

15+
(deftest test-doctype-html5
16+
(is (= (doctype :html5)
17+
(str "<!DOCTYPE html>"))))
18+
1519
(deftest test-doctype-xhtml-transitional
1620
(is (= (doctype :xhtml-transitional)
1721
(str "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "

0 commit comments

Comments
 (0)