title: JavaScript crash on IE8 and IE9-CompabilityMode: SCRIPT601: Unknown runtime error
body: <p>Page works fine on Chrome, IE9, FF, but gives me this error on IE8 and IE9-compabilitymode: SCRIPT601: Unknown runtime error with a reference to this bit of javascript:</p>
  
  <pre><code>function Sys$WebForms$PageRequestManager$_updatePanel(updatePanelElement, rendering) {
          for (var updatePanelID in this._scriptDisposes) {
              if (this._elementContains(updatePanelElement, document.getElementById(updatePanelID))) {
                  var disposeScripts = this._scriptDisposes[updatePanelID];
                  for (var i = 0, l = disposeScripts.length; i &lt; l; i++) {
                      eval(disposeScripts[i]);
                  }
                  delete this._scriptDisposes[updatePanelID];
              }
          }
          this._destroyTree(updatePanelElement);
          updatePanelElement.innerHTML = rendering; //this is where it crashes
      }
  </code></pre>
  
  <p>Any ideas on how to solve this?</p>