Back to HtmlDocument class

Method setHtml5

public void
setHtml5
(mixed $state)
Sets whether the document should be output as HTML5
Parameters
  • bool $state True when HTML5 should be output
Returns
  • void
Since
  • 3.0.0
Class: HtmlDocument
Project: Joomla

Method setHtml5 - Source code

/**
 * Sets whether the document should be output as HTML5
 *
 * @param   bool  $state  True when HTML5 should be output
 *
 * @return  void
 *
 * @since   3.0.0
 */
public function setHtml5($state)
{
    if (\is_bool($state)) {
        $this->html5 = $state;
    }
}