Why symphony serves content as text/html instead of application/xhtml+xml
This is an open discussion with 5 replies, filed under General.
Search
Thanks @michael-e, that provides a solution.
Do you know why symphony serves text/html by default, instead of its natural layout language (xhtml)?
text/html
ist the correct Content-Type for HTML (4), XHTML (1.0) and HTML 5 — so it does cover XHTML ouput.
As far as I know, using XHTML 1.1 output has zero practical advantages over XHTML 1.0 strict. Why do you think it's better?
I started using xhtml 1.1 due to its modular design, but I'm actually transitioning to [X]HTML 5.
As to what you mention about xhtml 1.0, actually if the content is sent as text/html
, no browser would really interpret this as xhtml. Instead it would be interpreted as html (even if it is xhtml 1.0). https://developer.mozilla.org/en-US/docs/XHTML
I have understood to be a compatibility issue with lnternet Explorer 8 and above.
But, really thanks for the extensions refered, It was really helpful. http://www.getsymphony.com/download/extensions/view/20040/ http://www.getsymphony.com/download/extensions/view/90662/
If you want to output HTML 5, be sure to check the HTML5 Doctype extension. It's the most flexible way to do it, IMHO.
Create an account or sign in to comment.
Even using DocType Xhtml 1.1 inside xsl:output.
The output of
curl -I site.domain.com
is:Could someone help me explain this please?