title: Failure in the querySelectorAll() from JavaScript
body: <p>I'm having a problem when I try to get a element by using <code>querySelectorAll</code>.</p>
  
  <p>Here is the part of HTML that I want to get from JS:</p>
  
  <pre><code>&lt;div id="paginacao"&gt;
      &lt;div class="pag-base"&gt; &lt;a href="#"&gt;{{1}}&lt;/a&gt; &lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{2}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{3}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{4}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{5}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{6}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{7}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{8}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{9}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;{{10}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pag-base"&gt;&lt;a href="#"&gt;...&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>I'm doing this on JavaScript:</p>
  
  <pre><code>var pages = document.querySelectorAll(".pag-base a");
  console.log(pages[0].textContent);
  </code></pre>
  
  <p>but this always returns undefined. Anyone knows what am I doing wrong?</p>