title: Selenium RC css selector with adjacent sibling combinator picks wrong table row
body: <p>Edit:  I made a mistake in the table data that I originally posted with.  Correction's in <strong>bold</strong>.</p>
  
  <p>I'm writing Python for Selenium RC.  In the document below I'm trying to select the table row that contains "United States" and "1", but the selector is always selecting the row that contains "United States" and "<strong>214</strong>" instead.  I think I know why.  Looks like :contains() is matching the "1" in 214 and that row is selected.</p>
  
  <p>This is my selector syntax:</p>
  
  <pre><code>self.selenium.click("css=table#filltbl tr td:contains(%s) + td:contains(%s)"%(country, area_code))
  </code></pre>
  
  <p>where country == "United States" and area_code == "1".  It seems that the adjacent sibling combinator is being ignored.</p>
  
  <p>How can I make :contains() match exactly "1" ?</p>
  
  <p>Thanks and sorry for the confusion.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  . . .
  &lt;table class="wrapper" cellspacing="0" cellpadding="0"&gt;
   &lt;tbody&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;table id="filltbl" class="tfill" cellspacing="0" cellpadding="0"&gt;
        &lt;tbody&gt;
         &lt;tr class="fill"&gt;
           &lt;td&gt;United States&lt;/td&gt;
           &lt;td&gt;214&lt;/td&gt;
           &lt;td&gt;&amp;nbsp;&lt;/td&gt;
         &lt;/tr&gt;
         &lt;tr class="fill"&gt;
           &lt;td&gt;United States&lt;/td&gt;
           &lt;td&gt;1&lt;/td&gt;
           &lt;td&gt;&amp;nbsp;&lt;/td&gt;
         &lt;/tr&gt;
       &lt;/tbody&gt;
      &lt;/table&gt;
  . . .
  </code></pre>