title: dojo: destroy all widgets by dom node
body: <p>My content is replaced with ajax but sometimes an element will have the same id on two pages (ie, a photo on the home page has the same id on the gallery page). This means that when dojo.parser.parse is called, the widgets are trying to be re-added, and the below error is thrown:</p>
  
  <pre><code>Error: Tried to register widget with id==____ but that id is already registered
  </code></pre>
  
  <p>Ideally, what I'd like to do is run destroyRecursive on the DOM node that the AJAX replaces. I've tried both of the below but neither work (I believe destroyRecursive is for widgets not DOM?):</p>
  
  <pre><code>dojo.byId('main').destroyRecursive();
  dijit.byId('main').destroyRecursive();
  </code></pre>
  
  <p>Is there a good way of doing this, or do I need to try and ensure that all my id's are different?</p>