Xhtml

From FiFormsWiki

Jump to: navigation, search

The FiForms Framework supports the XHTML 1.0 standard, but because of the lack of browser support, this is not turned on by default. You can tell FiForms to serve XHTML content by adding the following to your localconfig.php:

$FIFORMS_CONFIG['USE_XHTML'] = TRUE;

However, this will break compatibility with Internet Explorer and other browsers that don't yet support the application/xhtml+xml content type. In order to keep compatibility, and serve XHTML to those browsers that support it, you can add this line to your localconfig.php instead:

$FIFORMS_CONFIG['USE_XHTML'] = (strpos($_SERVER['HTTP_ACCEPT'] === false,'application/xhtml+xml') ? FALSE : TRUE);

See also:

Personal tools