title: Uncaught TypeError: Cannot read property 'createDocumentFragment' of undefined (using wysiwyg)
body: <p>Here is my jQuery:</p>
  
  <pre><code>$(".wysiwygtext").on("keyup keypress paste mouseup", function (e, t) {
      clearTimeout(timeout);
      timeout = setTimeout(function (e, t) {
          var element = $(this).html(); //throws 'Uncaught TypeError: Cannot read property 'createDocumentFragment' of undefined'
          var value = $(this).val(); //throws 'Uncaught TypeError: Cannot read property 'toLowerCase' of undefined' error
  
          console.log(element);
          console.log(value);
      }, 2000);
  });
  </code></pre>
  
  <p><code>.wysiwyg</code> is a class applied to certain divs, like so (html is generated from the server):</p>
  
  <pre><code>&lt;div class='wysiwygtext' data-guid='" + statementGuid + "' value='" + statementGuid + "'&gt;" + lastbody + "&lt;/div&gt;
  </code></pre>
  
  <p>I just need to retrieve the contents of the div (html) and the value (or ID) of the div upon any text change, but I am getting this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'createDocumentFragment' of
    undefined</p>
  </blockquote>
  
  <p>Thank you for any assistance.</p>