Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I prefer using the XHTML mime type for pages, instead of HTML, and serve a different mime type to IE, but when I do this, should I use XML DOM or HTML DOM?

share|improve this question
Either you build your page as XHTML or as HTML, you should not choose the mime type independent of the structure of your page. What do you mean with XML/HTML DOM? With the DOM you can access certain elements (nodes) in a document, it is not something different for XHTML and HTML. – martinstoeckli May 10 '12 at 11:00

Do you mean DOCTYPE or do you really mean mime type? And, why do you prefer sending html to IE and xhtml to everyone else? Seems like an unnecessary complication.

As a side note, why would anyone whose audience is the general public prefer serving XHTML over HTML? I should probably ask that in another thread if I really want an answer...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.