title: How to test against a DOM object in qUnit?
body: <p>I'm testing some JavaScript with qUnit. In one object I pass a DOM element, and some methods will change some properties of the element.</p>
  
  <p>How can I mock a DOM object in qUnit?</p>
  
  <p>I'd like to use a solution browser independent, as I test also XUL applications.</p>