Hi devs,
the current templates for xwiki pages include a xhtml standard <DOCTYPE>
for any html page generated which triggers the standard mode CSS
interpretation in browsers (see
http://www.quirksmode.org/css/quirksmode.html for details). This causes
issues in applications that use GWT generated code (like XWatch) since GWT
does not work properly in standards mode yet (see
http://code.google.com/p/google-web-toolkit/issues/detail?id=1305 for
details). I propose to parametrize the document type definition (its
existance and type), thus allowing the developer to take control of the
type of document it generates, for each generated page.
The solutions would be:
- using a request parameter to specify the doctype
- using a $response function, just like $response.setContentType() to set
the doctype at render time (this solution might require post processing to
change the default generated doctype in the page).
WDYT?