Use <f:view contentType="text/html"> as a workaround.
Seems to work fine with both of 3.1.4 and 3.2.0 versions. Screen shots attached.
It works fine on XHTML pages with <f:view contentType="text/html">
Should be fixed for XHTML content-type.
Done for trunk. Committed revision 5259.
Please merge to 3.1.x. Add resolution version 3.1.4 and resolve to QA.
Committed revision 5439.