title: Rvest not returning all html_nodes
body: <p>Attempting to scrape <a href="http://www.politico.com/2016-election/results/map/president/alabama/" rel="nofollow noreferrer">this site</a> for vote results using <code>rvest</code>. Using selector gadget </p>
  
  <p><a href="https://i.stack.imgur.com/XfZNo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XfZNo.png" alt="enter image description here"></a></p>
  
  <p>This looks like the right node--so I tried the following:</p>
  
  <pre><code>library(plyr)
  library(rvest)
  library(stringr)
  library(magrittr)
  
  res &lt;- "http://www.politico.com/2016-election/results/map/president/alabama/" %&gt;% 
    read_html
  </code></pre>
  
  <p>I'm going to need the county names for the nodes, so I'll scrape them first</p>
  
  <pre><code>cnames &lt;- res %&gt;% 
    html_nodes("h4") %&gt;% 
    html_text %&gt;% 
    extract(str_detect(., "County"))
  </code></pre>
  
  <p>And then scrape the site via an <code>llply</code> call</p>
  
  <pre><code>cnames %&gt;% 
    str_sub(, str_locate(., fixed(" "))[, 1] - 1) %&gt;% 
    str_c("#county", 
      .,
      " .results-popular") %&gt;% 
    llply(failwith(NULL,
               function(i)
                 res %&gt;% 
                  html_nodes(i) %&gt;% 
                  html_text))
  </code></pre>
  
  <p>But the resulting object only provides 10 sets of results:</p>
  
  <pre><code>[[1]]
  [1] "0" "0" "0" "0"
  
  [[2]]
  [1] "0" "0" "0" "0"
  
  [[3]]
  [1] "0" "0" "0" "0"
  
  [[4]]
  [1] "0" "0" "0" "0"
  
  [[5]]
  [1] "0" "0" "0" "0"
  
  [[6]]
  [1] "0" "0" "0" "0"
  
  [[7]]
  [1] "0" "0" "0" "0"
  
  [[8]]
  [1] "0" "0" "0" "0"
  
  [[9]]
  [1] "0" "0" "0" "0"
  
  [[10]]
  [1] "0" "0" "0" "0"
  
  [[11]]
  character(0)
  
  [[12]]
  character(0)
  </code></pre>
  
  <p>How do I scrape the remaining results?</p>