title: Selenium CSS selector by id AND multiple classes
body: <p>Using selenium for the first time here, I was wondering why:</p>
  
  <pre><code>final WebElement justAnId = findElement(By.cssSelector("#someId"));
  final WebElement whatIWant = justAnId.findElement(
      By.cssSelector(".aClass.andAnother input[type=text]")
  );
  </code></pre>
  
  <p>works, but not:</p>
  
  <pre><code>final WebElement whatIWant = findElement(By.cssSelector(
      "div#someId.aClass.andAnother input[type=text]"
  ));
  </code></pre>
  
  <p>Although they seem equivalent to me I get:</p>
  
  <pre><code>org.openqa.selenium.NoSuchElementException: Unable to locate element:
  {"method":"css selector","selector":"div#someId.aClass.andAnother input[type=text]"}
  </code></pre>
  
  <p>Is this intended behaviour or a bug in Selenium? I had a quick look in the bug tracker in Selenium but I didn't see anything about that. I wanted to ask here before raising an issue that doesn't need to be. Also as far as I understand it doesn't work in IE6 but who cares. I was using firefox for this run.</p>