You might notice some unusual things about these XUL examples:

  1. <button ref="NC:BookmarksRoot" label="OK"
      oncommand="alert(document.getElementById('NC:BookmarksRoot').tagName);"/>
    
  2. <button id="NC:HistoryRoot" label="OK" oncommand="alert(this.resource);"/>
    
  3. <tree id="urn:animals:data" datasources="animals.rdf">
    ...
    </tree>