IE10 (9,8) does not recognize DOCTYPE xhtml IE10 (9,8) does not recognize DOCTYPE xhtml jquery jquery

IE10 (9,8) does not recognize DOCTYPE xhtml


Change your DOCTYPE to:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

(using XHTML strict instead of transitional)

IE10 will stop throwing the error in the console. I'm not sure why IE10 doesn't like transitional XHTML any more. If anyone has a way for IE10 to recognize the XHTML 1.0 Transitional DOCTYPE, that would be awesome.


I was able to get rid of the error by using

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />

instead of

<meta http-equiv="X-UA-Compatible" content="IE=edge" />


I had same issue. It worth looking at any external libraries you are using. I was using BXSlider and it wasn't happy with jQuery 1.8 on IE10. Due to which IE10 was failing and showing message.

  HTML1524: Invalid DOCTYPE. The shortest valid doctype is "<!DOCTYPE html>

My solution was to upgrade my JQuery to 1.9.1 and also include jQuery migrate.

      <script src="http://code.jquery.com/jquery-1.9.1.js"></script>      <script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>

Hope this helps someone.