drewm / hkit

Automatically exported from code.google.com/p/hkit
0 stars 0 forks source link

Wrong parse of phone and email with value/type #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 <a class="email" href="mailto:_junk@gmail.com">_junk@gmail.com</a> 
 <div class="tel">321-321-321</div> 
 <div class="tel"><span class="type">fax</span><span class="value">123-123-
123</span></div> 
 <div class="tel"><span class="type">fax</span><span class="value">+7 (921) 
123-123-123</span></div> 

Below lines parsed as only last phones:
  ["tel"]=>
  array(2) {
    [1]=>
    array(2) {
      ["type"]=>
      string(3) "fax"
      ["value"]=>
      string(11) "123-123-123"
    }
    [2]=>
    array(2) {
      ["type"]=>
      string(3) "fax"
      ["value"]=>
      string(20) "+7 (921) 123-123-123"
    }
  }

Expected email, and three phones.

Original issue reported on code.google.com by Anatoliy...@gmail.com on 4 Sep 2008 at 11:42