title: PHP Simple HTML DOM Parser . not returning "href" attribute from anchor tags
body: <p>I'm trying to get all URL's from a html source, however the payload that is returned doesn't bring the "href" attribute.</p>
  
  <p>This is my code:</p>
  
  <pre><code>include('simple_html_dom.php');
  
  $foundHits = array();
  getArticles('https://pinpoint.microsoft.com/pt-PT/search?keyword=azure');
  
  
  function getArticles($page) {
      global $foundHits;
  
      $html = new simple_html_dom();
      $html-&gt;load_file($page);
  
      $hits = $html-&gt;find('div[class="companySearchResults"] div[class="itemRight"] a[class=searchResult]');
  
  
      foreach($hits as $hit) {
  
          $foundHits[] = $hit-&gt;attr['href'];
      }
  
      var_dump($foundHits);
  }
  </code></pre>
  
  <p>And this is a sample of what is returned if I var_dump $hits variable:</p>
  
  <pre><code>array (size=2)
    0 =&gt; 
      object(simple_html_dom_node)[447]
        public 'nodetype' =&gt; int 1
        public 'tag' =&gt; string 'a' (length=1)
        public 'attr' =&gt; 
          array (size=2)
            'data-bind' =&gt; string 'href: uri + '?id=searchResult'' (length=30)
            'class' =&gt; string 'searchResult' (length=12)
        public 'children' =&gt; 
  
  (...)
  </code></pre>
  
  <p>Has you can see, in the "attr" array I don't get the href tag content, despite existing.</p>
  
  <p>However if I copy the contents from the source URL to a .html in my project folder, and use this local .html as my source file the result is this:</p>
  
  <pre><code>0 =&gt; 
      object(simple_html_dom_node)[650]
        public 'nodetype' =&gt; int 1
        public 'tag' =&gt; string 'a' (length=1)
        public 'attr' =&gt; 
          array (size=3)
            'data-bind' =&gt; string 'href: uri + '?id=searchResult'' (length=30)
            'class' =&gt; string 'searchResult' (length=12)
            'href' =&gt; string '/pt-PT/Companies/4295470302?id=searchResult' (length=43)
  
  (...)
  </code></pre>
  
  <p>What I'm doing wrong? Thanks for any help!</p>