title: Jsoup div[class=] syntax works whereas div.class syntax doesn't - Why?
body: <p>For the following HTML snippet:</p>
  
  <pre><code>&lt;div class="class_one class_two class_three classfour classfive classsix"&gt;
  some inner content
  &lt;/div&gt;
  </code></pre>
  
  <p>The following Jsoup selector <strong>works</strong>:</p>
  
  <pre><code>div[class=class_one class_two class_three classfour classfive classsix]
  </code></pre>
  
  <p>But the equivalent div.class syntax <strong>doesn't</strong> work:</p>
  
  <pre><code>div.class_one.class_two.class_three.classfour.classfive.classsix
  </code></pre>
  
  <p>Why? What am I missing?</p>
  
  <p><strong>EDIT</strong>: Based on the feedback I received below, I realize that I failed to explain what "doesn't work" means. This was due to my confusion as to how multiclass selection syntax works. By "not working" I meant that the <code>.classname</code> syntax above selects way too many divs than the <code>class=classname</code> syntax (with the same exact number of classname and in the same order!) does, because the HTML in question contained additional divs with a 7th class name... It turns out that this is <a href="https://stackoverflow.com/questions/7563421/multiclass-element-selection-clarification/7563453#7563453">by design</a>. That's what I was missing, and thanks to @Hovercraft Full Of Eels and @BalusC who helped me discover this.</p>