title: Get the innerHTML of  [object XrayWrapper [object HTMLDivElement]] object
body: <p>In my userscript i created a hook of document.createElement the code i used is the solution provided by Brock adams in the below post</p>
  
  <p><a href="https://stackoverflow.com/questions/10083010/log-a-web-pages-dynamically-created-dom-elements-with-a-userscript">Log a web page&#39;s dynamically-created, DOM elements with a userscript</a></p>
  
  <p>Now when i run this userscript in firefox and print the <code>elem</code> in <code>LogNewTagCreations ()</code> method like this <code>console.log(elem)</code> i am getting the output as <code>[object XrayWrapper [object HTMLDivElement]]</code> in this format. Now how can i get the <code>innerHTML</code> property of the tag or entire tag like this <code>&lt;div&gt;Sometext&lt;/div&gt;</code> so that i can get <code>innerHTML</code> from this</p>