title: After upgrading to jQuery 1.6.2, globalEval throws an error when trying to execute javascript on page
body: <p>I upgraded from jQuery 1.4.2 to 1.6.2 and now I get error(in IE). I have JavaScript on the page that gets executed by jQuery <a href="http://api.jquery.com/jQuery.globalEval/" rel="nofollow"><code>globalEval()</code></a> function</p>
  
  <pre><code>// Evaluates a script in a global context
  // Workarounds based on findings by Jim Driscoll
  // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
  globalEval: function( data ) {
      if ( data &amp;&amp; rnotwhite.test( data ) ) {
          // We use execScript on Internet Explorer
          // We use an anonymous function so that context is window
          // rather than jQuery in Firefox
          ( window.execScript || function( data ) {
              window[ "eval" ].call( window, data );
          } )( data );
      }
  },
  </code></pre>
  
  <p>In IE the call throws exception: </p>
  
  <blockquote>
    <p>"Error: Could not complete the operation due to error 80020101."</p>
  </blockquote>
  
  <p>The <em>data</em> parameter that get executed is javascript variables on page surrounded by <code>&lt;!-- --&gt;</code></p>
  
  <pre><code>&lt;!-- 
  var id = \"ctrl90900\";
  
  var url = \"myur.com/blah.html\";
  
  --&gt;
  </code></pre>
  
  <p>I'm using IE9, and  <a href="http://code.jquery.com/jquery-1.6.2.js" rel="nofollow">jQuery 1.6.2</a>  Not sure why this would cause an error. </p>