jiangfeng / phpquery

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

find xml tag like jwplayer:hd.file #217

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
phpquery donot work with dot in tag name
i solved this essue by adding this lines:
i use "@" instead of "."
change line 329:
$tagChars = array('*', '|', '-','@');

change line 717..719
$isTag = extension_loaded('mbstring') && phpQuery::$mbstringSupport
    ? mb_ereg_match('^[\w|\||-|@]+$', $s) || $s == '*'
    : preg_match('@^[\w|\||-|@]+$@', $s) || $s == '*';

add lines 722:
if(mb_strpos($s,'@')!==false){
    $s=str_replace('@', '.', $s);
}

if fix this essue in source project please call me

Original issue reported on code.google.com by mortezak...@gmail.com on 30 Aug 2012 at 3:45

Attachments: