Jquery - IE not implemented error (in IE 8)
<p>I am having an IE not implemented JavaScript error and it seems not to have anything to do with what ive been reading on so far on this website. </p>

<p>Im using  jquery.simplemodal plugin which works fine in all browsers except IE unless I change the doctype to </p>

<blockquote>
  <p>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"></p>
</blockquote>

<p>IE is pointing the error to the first line of the following code (I mean the line in bold): </p>

<blockquote>
  <p><strong>s.removeExpression('height');</strong></p>
  
  <p>s.removeExpression('width');</p>
  
  <p>s.setExpression('height',''+bsh+' > '+bch+' ? '+bsh+' : '+bch+' + "px"');</p>
  
  <p>s.setExpression('width',''+bsw+' > '+bcw+' ? '+bsw+' : '+bcw+' + "px"');</p>
</blockquote>

<p>How can I make it work in IE while using a doctype different from </p>

<blockquote>
  <p>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> </p>
</blockquote>

<p>(I would like to use this doctype </p>

<blockquote>
  <p>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">)</p>
</blockquote>

<p>The plugin is available at <a href="http://lescracks.com/jquery.simplemodal.js" rel="nofollow">http://lescracks.com/jquery.simplemodal.js</a> . IE detects the error at line 142. </p>

<p>Thanks</p>

<p>One more thing, it also works fine in IE with the Compatibility view enabled. </p>
