Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By Danic on
Hello!
While researching for my own website I stumbled upon this page from the W3C:
http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xml (Also take a look at 3.5 Summary)
As you can see, Drupal 6 should use the media type "application/xhtml+xml" instead of "text/html", because the drupals doctype say it's XHTML.
Any XHTML Family document MAY be served as 'text/xml'.
The considerations for 'application/xml' also apply to 'text/xml'.
Whenever appropriate, 'application/xhtml+xml' SHOULD
be used rather than 'text/xml'.
Comments
Actually, we should currently stick with text/html
XHTML support both, actually.
So, in 2008, there are still a lot of user agents who would not be able to browse Drupal-based sites if Drupal switched to "application/xhtml+xml".
However, any theme author can immediatly use "application/xhtml+xml". Core parts of Drupal do not need any modification to support "application/xhtml+xml".
/*_*/
http://www.xmacinfo.com
So, in 2008, there are still
Interesting, I did not know that! Thank you.