You are here:Home arrow Home arrow PHP arrow Serving XHTML in Zend Framework App
  • Narrow screen resolution
  • Wide screen resolution
  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • green color
  • blue color

Serving XHTML in Zend Framework App

Wednesday, 22 April 2009

Serving XHTML is often misunderstood by PHP developers. Frontend engineers simply include the XHTML doctype to their documents, without actually serving document as XHTML. This triggers majority of the browsers to treat such pages as “tag-soup”.

If you really care for faster XHTML rendering, you can get its benefit by using content negotiation, thanks to the new controller plugin we have for you.

You should note, however, that your pages should be XHTML compliant and validate against XHTML validators like our own XHTML validator. Otherwise, XHTML supporting browsers will only display errors instead of actual content! If you are sure that your frontend designer is a good XHTML writer, then you should be safe (still, it never hurts to validate first).

View solution now by giving credit to author




Reddit!Del.icio.us!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!
Last Updated ( Wednesday, 24 August 2011 )

Add comment


Security code
Refresh

< Prev   Next >