title: Unknown method : selectSingleNode() in Internet explorer 11 || Javascipt
body: <p>A runtime error is thrown &quot;Automation server can't create object&quot; specifically on Internet explorer v11 and it's failing to get desired functionality as a result. I have attached screenshot while debugging here <a href="https://ibb.co/XWwqsRw" rel="nofollow noreferrer">https://ibb.co/XWwqsRw</a> . Attached code below.</p>
  <p>The code is running fine in IE v8.</p>
  <p>How to resolve this issue or if any alternative could be done.</p>
  <p>Thanks in advance!</p>
  <pre><code> function bulk_check()
  { 
    var emptyRows = 0;
    len = document.getElementById(&quot;TBL_QryRslts&quot;).tBodies[0].rows.length;
    var rows = document.getElementById(&quot;TBL_QryRslts&quot;).tBodies[0].rows;
    msob_dcnlist = &quot;&quot; ;
    msob_fchk= -1 ;
    msob_tchk = 0 ; 
     len = document.getElementById(&quot;TBL_QryRslts&quot;).tBodies[0].rows.length;      
      var newDOM = new ActiveXObject(&quot;Msxml2.DOMDocument.4.0&quot;); //Giving error here
      newDOM.async = false;
      newDOM.resolveExternals = false;
      var tempDOM = new ActiveXObject(&quot;Msxml2.DOMDocument.4.0&quot;);
  
   tempDOM.async = false;
      tempDOM.resolveExternals = false;
      for(i = 0;i &lt; len; i++)
        {
          if(document.getElementById(&quot;TBL_QryRslts&quot;).tBodies[0].rows[i].cells[0].getElementsByTagName(&quot;INPUT&quot;)[0]){
            if(document.getElementById(&quot;TBL_QryRslts&quot;).tBodies[0].rows[i].cells[0].getElementsByTagName(&quot;INPUT&quot;)[0].checked ){
              msob_bulk[i]='Y'; 
              if (msob_fchk == -1) {
              msob_fchk = i;      }
              msob_tchk = msob_tchk +1;
              msob_dcnlist = msob_dcnlist + (document.getElementById(&quot;TBL_QryRslts&quot;).tBodies[0].rows[i].cells[1].innerText  + ':') ;
              }
           
          }
            else if (msob_tchk == 0 ) {
                    alert ( 'Please Select a Record');
                    return false ; } 
          else
            break;
        }
         msob_dcnlist= msob_dcnlist + 'EOPL';
    msob_fchk = msob_fchk;
    return true;
  }
  </code></pre>