joomla/joomla-platform — pull request #1389 by Bakual (2012-07-19 18:49:42+00:00)
Title: JFactory::createDocument always creates HTML documents.

Fixing the "format" URL parameter. Bug was introduced when the depreceated "no_html" was removed.
Now it is no longer possible to create other document types using "&format=raw".
This PR brings back this function but doesn't reintroduce the "no_html" parameter.