title: Strange thing with BeautifulSoup?
body: <p>I am trying to use BeautifulSoup to parse a web page like the following</p>
  
  <pre><code>     &lt;div id="block-info-advan" style="width: 760px;"&gt;
          &lt;div class="content-0"&gt;
              &lt;div class="left-col"&gt;
                  &lt;div class="number"&gt;
                      1&lt;/div&gt;
                  &lt;div class="nq"&gt;
                      &lt;p class="nqTitle" lawid="435943"&gt;
                          &lt;a&gt;...&lt;/a&gt;
                      &lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="content-1"&gt;
              &lt;div class="left-col"&gt;
                  &lt;div class="number"&gt;
                      2&lt;/div&gt;
                  &lt;div class="nq"&gt;
                      &lt;p class="nqTitle" lawid="435632"&gt;
                          &lt;a &lt;...&lt;/a&gt;
                      &lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p><strong>If I use:</strong></p>
  
  <pre><code>test = soup.select(".nqTitle")
  </code></pre>
  
  <pre><code>result: 2
  </code></pre>
  
  <p><strong>But why if I use:</strong></p>
  
  <pre><code>test = soup.select("body .nqTitle")
  </code></pre>
  
  <pre><code>result: 1
  </code></pre>
  
  <p>or </p>
  
  <pre><code>test = soup.select("body")
  test2 = test[0].select(".nqTitle")
  </code></pre>
  
  <pre><code>result: 1
  </code></pre>
  
  <p>In the second code, I expect the result as 2.</p>
  
  <p>Can anyone explain for me?</p>
  
  <p>Thanks.</p>