Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Will XHTML 2.0 require application/xhtml+xml?

0
Posted

Will XHTML 2.0 require application/xhtml+xml?

0

In the latest draft, it was not said whether XHTML will require this MIME type or not. In the past, it has merely been recommended by the draft. Since Internet Explorer does not support the application/xhtml+xml MIME type, it could present problems if it is going to be required. One way to get around it would be to send a different MIME type to Internet Explorer using server-side technologies listed below. Many websites already do this, so it does make some sense. Serving different MIME types to different browsers using PHPThe server sends a header called HTTP_ACCEPT to the browser which says what MIME types it allows. It is possible to take this and use it to tell if the browser support application/xhtml+xml using any server-side technology. Here, we will use PHP to show how easy it is to do. Now, this isn’t the perfect solution

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123