title: Select elements based on class and element type
body: <p>How can I select all elements within an HTML document with a specific class and specific element type?</p>
  
  <p>I'm trying to select all anchors with the class <code>title loggedin</code> from an HTML document (and then open them within the browser). These are within parragraphs with the class <code>title</code>.</p>
  
  <p>They are leafs in the following DOM tree:</p>
  
  <pre><code>+ body
    + div class='content'
      + div id='siteTable' class='sitetable linklisting'
        + div class='thing id-t3_xxxx xxx xxx link'
          + div class='entry unvoted'
              + p class='title'
                + a class='title loggedin '
  </code></pre>
  
  <p>Where <code>x</code> indicates variable content.</p>
  
  <p>(I'm looking to do this in raw JavaScript, ie, not in jQuery.)</p>