title: IE10 (9,8) does not recognize DOCTYPE xhtml
body: <p>IE10 rejects to launch some jQuery code, as far I found on runtime somewhere a doctype is wrong detected and prepended with 4.01 transitional version.</p>
  <p>In IE's developer tools viewing the console I see
  <code>HTML1524: Invalid DOCTYPE. The shortest valid doctype is &quot;&lt;!DOCTYPE html&gt;&quot;</code> and following (runtime modified) html:</p>
  <p>I believe both misuse of DOCTYPE and some jQuery not working have a common reason, but did not find what it is.</p>
  <pre><code>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd&quot;&gt;
  &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;&lt;HTML 
  xmlns=&quot;http://www.w3.org/1999/xhtml&quot; slick-uniqueid=&quot;1&quot;&gt;&lt;HEAD&gt;&lt;META 
  content=&quot;IE=10.000&quot; http-equiv=&quot;X-UA-Compatible&quot;&gt;
  
  &lt;META http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
  &lt;META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1250&quot;&gt;
  &lt;TITLE&gt;....
  </code></pre>
  <p>While <strong>IE states to run in standards mode, still some things do not work</strong> (mainly replacing the links with jQuery's on click events to show content instead loading whole new page - used for unpacking other menu branch using accordion, original links in category headers with href are fallback only for case jQuery fails to animate accordion)</p>
  <p>Too many other on click events or jQuery UI functions to make link to look like button fail to function in IE while working in other browsers.</p>
  <p>Original HTML as provided from server is following:</p>
  <pre><code>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;sk&quot; lang=&quot;sk&quot;&gt;
  &lt;head&gt;
  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1250&quot; /&gt;
  &lt;title&gt;...
  </code></pre>
  <p>I am forced to use both MooTools and jQuery and know the slick-uniqueid in htm attributes is from Moo, I don't know if it may be the same who edits the doctype, but I'm sure it happens in IE browsers only, Chrome and Firefox just work OK.</p>
  <p>jQuery scripts are loaded from external js file, wrapped in <strong>jQuery(function() {..</strong> and all use full variable name jQuery instead of dollarsign, for example <code> jQuery(&quot;#myid&quot;).click( function(e){..</code>.</p>
  <p>As using both mootools and jQuery (I know I should not but need some mootools plugin for slideshow with thumbnails and KenBurns effect) and <strong>jQuery is loaded first</strong> and within scripts I use only <strong>jQuery()... so the $ dollarsign is all free for MooTools</strong> to use later on as it is loaded just if needed, within the body (not sure that's OK but that's the way how 'visualslideshow' presented it).</p>
  <p>I'd be glad to hear any ideas or suggestions on how to identify or fix it to get the jQuery working right (v1.8).</p>