title: Is there a way to check if two DOM elements are equal?
body: <p>It's no problem to find an element by position and the position of an element in Javascript.
  But is there are general way to compare them?</p>
  
  <p>The only way I could think of is comparing ids or classnames, but not all elements have ids or classnames.</p>