We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bd4a32 commit 3ed0a8fCopy full SHA for 3ed0a8f
2 files changed
src/compojure/html/page_helpers.clj
@@ -19,6 +19,9 @@
19
(str "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" "
20
"\"http://www.w3.org/TR/html4/strict.dtd\">\n")
21
22
+ :html5
23
+ (str "<!DOCTYPE html>")
24
+
25
:xhtml-strict
26
(str "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" "
27
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n")
test/compojure/html/page_helpers.clj
@@ -12,6 +12,10 @@
12
13
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"))))
14
15
+(deftest test-doctype-html5
16
+ (is (= (doctype :html5)
17
+ (str "<!DOCTYPE html>"))))
18
(deftest test-doctype-xhtml-transitional
(is (= (doctype :xhtml-transitional)
(str "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
0 commit comments