title: Pure Javascript for referencing parsed html
body: <p>So I've learned parsing html with jQuery but now I'd like to know the pure javascript method.</p>
  
  <p>A typical jQuery parse in my use would look like</p>
  
  <pre><code>function parse(obj) {
      // Parse the html
      var htm = $.parseHTML(obj, true);
      // reference whatever element I want in said parsed html
      $('#id', htm).text();
  }
  </code></pre>
  
  <p>what would be the javascript equivalent of this? I'm mostly confused at referencing the parsed object in pure javascript vs jQuery.</p>
  
  <p>Edit: This is being executed in a userscript, so I'd prefer not to add any dummy elements to the DOM of the site it's running on. </p>