title: Understanding Firefox' Autocompletion Popup
body: <p>I build my own Richlist-Suggest-Popup for the <code>URLBar</code> along the lines of Mozilla.</p>
  
  <p>When reading <a href="http://mxr.mozilla.org/mozilla/source/toolkit/content/widgets/autocomplete.xml#1062" rel="nofollow">their Source</a> I don't understand how they simply do a <code>setAttribute('image', image)</code> as a <a href="https://developer.mozilla.org/en/XUL/richlistitem" rel="nofollow"><code>richlistitem</code></a> actually doesn't support this attribute.</p>
  
  <p>As far as I know the <code>richlistitem</code> DOM is supposed to look the following:</p>
  
  <pre><code>richlistitem.autocomplete-richlistitem
    vbox
      hbox
        image.ac-site-icon
        label
  </code></pre>
  
  <p>Generating this on my own almost works, but I'm kind of sure that this is the wrong way. </p>
  
  <p>Could anyone explain either how Mozilla provides this feature or show me an example how one would achieve the behaviour?</p>