title: Error: document is not defined
body: <p>I want to test a property of an HTML eemnet using Chai like this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>const chai = require('chai');
  const expect  = chai.expect;
  expect(document.getElementById('ref_button')).to.have.attr('disabled');</code></pre>
  </div>
  </div>
  </p>
  <p>Wen I put this line fr chai-dom  <code>chai.use(require('chai-dom'))</code>
  it thrws the error:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Unhandled rejection ReferenceError: document is not defined at     
  C:\Users\67563478\new_workspace\onconsup\node_modules\chai-dom\chai-dom.js:69:53 at Object.exports.use
  (C:\Users\67563478\new_workspace\onconsup\node_modules\chai\lib\chai.js:39:5)</code></pre>
  </div>
  </div>
  
  And the line inside chai-dom whoc thros the error is this one:</p>
  <pre><code>NODE_LIST_STRING = Object.prototype.toString.call(document.childNodes),
  </code></pre>
  <p>i REMOVED THIS LINE AND THAT ERROR IS NOT ANYMORE. Now the error is <code>document is not defined</code> for the line of document.getElementById.
  What should I do? Maybe is the library chai-dom deprecated?</p>