title: Javascript crazy idea finding a node
body: <p>I had a crazy (but so crazy that it just might work) idea where every element on a page is created in javascript but given an ID which is a hash of its path in the DOM. </p>
  
  <p>So instead of searching through the DOM to find an element, you hash the path and then <code>getElementById()</code> with that hash. </p>
  
  <p>Problem with this is getting the path might be more expensive than searching the DOM in the first place. Any ideas how this could be done or if it is just plain stupid?</p>