ENV: TS 7.2.1 / SolarisI'm attempting to use a site pre-controller to inject a DOCTYPE declaration into the page (site pages have been created in "htmlQuirks" mode).I'm using the RuntimePage.PAGESCOPE_HEAD_INJECTION constant but the injection is in the head section (as advertised). Before I go down another path is there a value I can use to place it outside the leading html tag?TIA
If you want an HTML5 doctype, ask Autonomy for a patch.
You don't need a patch. You can produce the "legacy" HTML5 doctype, by setting your pagetype-config.xml like this:[PHP] HTML 5htmlabout:legacy-compat htmltext/htmltrue [/PHP]..which produces this, the w3c's accepted and documented html5 doctype declaration for legacy systems..[PHP][/PHP]Whether you're doing HTML5 or not, this file is the only supported place to change doctypes (indeed, the only way that even works for all use cases).
I think the HTML5 doctype mentioned by you is actually a workaround if I take a look at the valid doctypes by w3c: http://www.w3.org/QA/2002/04/valid-dtd-list.html. Though it works, but I would surely recommend going with the standard and not including an extra system identifier.
It's perfectly valid. Source: the W3C's HTML5 spec @ http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#the-doctype