change the doctype for HTML5

html5
Marshall 2020-03-09 14:29:05 -04:00
parent dcbc5a275e
commit 2cc6f8b71e
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class HTMLFormatter (XMLishFormatter):
""" Produce HTML output. """ """ Produce HTML output. """
CONTENT_TYPE = 'text/html; charset=UTF-8' CONTENT_TYPE = 'text/html; charset=UTF-8'
DOCTYPE = 'html' DOCTYPE = 'html5'
def __init__ (self): def __init__ (self):
super (HTMLFormatter, self).__init__ () super (HTMLFormatter, self).__init__ ()
@ -193,7 +193,7 @@ class MobileFormatter (XMLishFormatter):
""" Produce HTML output suitable for mobile devices. """ """ Produce HTML output suitable for mobile devices. """
CONTENT_TYPE = mt.xhtml + '; charset=UTF-8' CONTENT_TYPE = mt.xhtml + '; charset=UTF-8'
DOCTYPE = 'html' DOCTYPE = 'html5'
def __init__ (self): def __init__ (self):
super (MobileFormatter, self).__init__ () super (MobileFormatter, self).__init__ ()