title: Problems with multiple attributes while using PHP Simple HTML DOM
body: <p>I use this code for getting elements of left navigation bar:</p>
  
  <pre><code>function parseInit($url) {
    $ch = curl_init();
    $timeout = 0;
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);     
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); 
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $data = curl_exec($ch);
    curl_close($ch);
    return $data;
  }
  
  $data = parseInit("https://www.smile-dental.de/index.php");
  $data = preg_replace('/&lt;(d[ldt])( |&gt;)/smi', '&lt;div data-type="$1"$2', $data);
  $data = preg_replace('/&lt;\/d[ldt]&gt;/smi', '&lt;/div&gt;', $data);
  $html = new simple_html_dom();
  $html = $html-&gt;load($data);
  </code></pre>
  
  <p>But faced with such problem.<br>
  For example, if I use such syntax for getting elements: <code>$html-&gt;find("div[data-type=dd].level2")</code>, then I get <strong>ALL</strong> elements with data attributes <strong>DT, DD, DL</strong> and class name <strong>LEVEL2</strong>. If I use another syntax: <code>$html-&gt;find("div.level2[data-type=dd]")</code>, then I get <strong>ALL</strong> elements with data attribute <strong>DD</strong>, but with class names <strong>LEVEL1, LEVEL2 and LEVEL3 etc..</strong> 
  Could you explain me what the problem is? Thanks in advance!</p>
  
  <p><em>P.S.: All DT, DL and DD elements was changed with regexp to the DIV elements with appropriate data attributes, because this parser incorrectly counts the number of these elements.</em></p>