Commit 828f8100 authored by stl's avatar stl
Browse files

Add HTML5 support

parent 0c237499
......@@ -46,6 +46,7 @@ class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract
const HTML4_STRICT = 'HTML4_STRICT';
const HTML4_LOOSE = 'HTML4_LOOSE';
const HTML4_FRAMESET = 'HTML4_FRAMESET';
const HTML5 = 'HTML5';
const CUSTOM_XHTML = 'CUSTOM_XHTML';
const CUSTOM = 'CUSTOM';
/**#@-*/
......@@ -87,6 +88,7 @@ class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract
self::XHTML_BASIC1 => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">',
self::HTML4_STRICT => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
self::HTML4_LOOSE => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
self::HTML5 => '<!DOCTYPE HTML>',
self::HTML4_FRAMESET => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
)
));
......@@ -114,6 +116,7 @@ class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract
case self::XHTML_BASIC1:
case self::HTML4_STRICT:
case self::HTML4_LOOSE:
case self::HTML5:
case self::HTML4_FRAMESET:
$this->setDoctype($doctype);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment