title: Illegal operation on WrappedNative prototype object
body: <p>I'm sorry if this answer seems similar to other questions in this website,
  but I couldn't find what I need.</p>
  
  <p>I have this code:</p>
  
  <pre><code>    $.ajax({
              url: '../../cgi-bin/executeQuery',
              type: 'GET',
              data: ({siid:5185,of:"xmlWithColID"}),
              dataType: 'xml',
              success: function(xmlR){
                      try{
                              $.ajax({
                                      url: '../../cgi-bin/authList.py',
                                      type: 'GET',
                                      data: ({xmlToFormat:xmlR,service:"paperList"}),
                                      dataType: 'xml',
                                      success: function(data){
                                              try{
                                                      displayResult(data,loadXMLDoc("js/authList/paperTableStyle.xsl"),"divPaperTable");
                                              }catch(e){
                                                      console.log(e.message);
                                              }
                                      },
                                      complete: function(XMLHttpRequest, textStatus){
                                              $('#divMakingAuthorList').addClass('secondary');
                                              $('#divMakingAuthorList').hide();
                                      }
                              });
                      }catch(e){
                              console.log(e.message);
                      }
              }
      });
  </code></pre>
  
  <p>That gives me the following error in FF: "Illegal operation on WrappedNative prototype object".</p>
  
  <p>When I removed the "success" part of my code, the error message was still there.
  After, I removed the "complete" parte and the error message was there too.
  But then, when I removed the following line of my code:
      data: ({xmlToFormat:xmlR,service:"paperList"}),
  The message was gone.</p>
  
  <p>But I don't understand the reason. Is it possible to send "xml" to my CGI as data in an ajax event?</p>
  
  <p>Thanks</p>