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.

Why is the Docutils XHTML served as “Content-type: text/html”?

0
10 Posted

Why is the Docutils XHTML served as “Content-type: text/html”?

0

Full question: Docutils’ HTML output looks like XHTML and is advertised as such: But this is followed by: Shouldn’t this be “application/xhtml+xml” instead of “text/html”? In a perfect web, the Docutils XHTML output would be 100% strict XHTML. But it’s not a perfect web, and a major source of imperfection is Internet Explorer. Despite it’s drawbacks, IE still represents the majority of web browsers, and cannot be ignored. Short answer: if we didn’t serve XHTML as “text/html” (which is a perfectly valid thing to do), it couldn’t be viewed in Internet Explorer. Long answer: see the “Criticisms of Internet Explorer” Wikipedia entry. However, there’s also Sending XHTML as text/html Considered Harmful. What to do, what to do? We’re damned no matter what we do. S

Related Questions

What is your question?

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

Experts123