p
');
//print $doc['article']->children(':empty')->get(0)->tagName;
//$doc = phpQuery::newDocumentFile('test.html');
//setlocale(LC_ALL, 'pl_PL.UTF-8');
//$string = strftime('%B %Y', time());
//$doc['p:first']->append($string)->dump();
/*
*
$doc1 = phpQuery::newDocumentFileXHTML('doc1.html');
$doc2 = phpQuery::newDocumentFileXHTML('doc2.html');
$doc3 = phpQuery::newDocumentFileXHTML('doc3.html');
$doc4 = phpQuery::newDocumentFileXHTML('doc4.html');
$doc2['body']
->append($doc3['body >*'])
->append($doc4['body >*']);
$doc1['body']
->append($doc2['body >*']);
print $doc1->plugin('Scripts')->script('safe_print');
*/
//$doc = phpQuery::newDocument(' p1 b1 b2
p2
');
//print $doc['p']->contents()->not('[nodeType=1]');
//print phpQuery::newDocumentFileXML('tmp.xml');
//$doc = phpQuery::newDocumentXML('textnodetest');
//pq('', $doc)->insertBefore(pq('node'))->append(pq('node'));
//$doc->contents()->wrap('');
//$doc['node']->wrapAll('');
// ->contents()
// ->wrap('');
//print $doc;
// http://code.google.com/p/phpquery/issues/detail?id=66
//$doc = phpQuery::newDocumentXML('123123
');
//$doc->dump();
//$doc->children()->wrapAll('')->dump();
// http://code.google.com/p/phpquery/issues/detail?id=69
//$doc = phpQuery::newDocumentXML('123123
');
//$doc['[class^="test"]']->dump();
// http://code.google.com/p/phpquery/issues/detail?id=71
// $doc = phpQuery::newDocument('');
// print $doc['input']->val('new')->val();
// http://code.google.com/p/phpquery/issues/detail?id=71
// $doc = phpQuery::newDocument('');
// $doc['select']->val('20')->dump();
// http://code.google.com/p/phpquery/issues/detail?id=73
// $doc = phpQuery::newDocument('');
// var_dump($doc['input']->val(0)->val());
// $a = null;
// new CallbackReference($a);
// phpQuery::callbackRun(new CallbackReference($a), array('new $a value'));
// var_dump($a);
// check next() inside (also, but separatly)
// $inputs->dump();
// foreach($inputs as $node) {
// }
// $inputs->dump();
// http://code.google.com/p/phpquery/issues/detail?id=74
// http://code.google.com/p/phpquery/issues/detail?id=31
//$doc = phpQuery::newDocument('');
//$doc['div']->filter('.class1, .class2')->dump()->dumpWhois();
// http://code.google.com/p/phpquery/issues/detail?id=76
// mb_internal_encoding("UTF-8");
// mb_regex_encoding("UTF-8");
// $xml = phpQuery::newDocumentXML('<документа/>');
//
// $xml['документа']->append('<список>список>');
// $xml['документа список'] = '<эл>1эл><эл>2эл><эл>3эл>';
// print "$xml";
// zeromski 0.9.5 vs 0.9.1
// phpQuery::newDocumentXML('')->dump();
// http://code.google.com/p/phpquery/issues/detail?id=77
// phpQuery::newDocumentFile('http://google.com/')
// ->find('body > *')->dumpWhois();
/*$XHTML = <<
Vous êtes ici :
Editorial
EOF;
phpQuery::newDocumentXHTML($XHTML)
->find('body:first > *')->dumpWhois();*/
// http://code.google.com/p/phpquery/issues/detail?id=83
//$doc = phpQuery::newDocument('');
//print $doc['[name=toto]']->val('1');
//$doc = phpQuery::newDocumentFile('http://www.google.pl/search?hl=en&q=test&btnG=Google+Search');
//print $doc;
// http://code.google.com/p/phpquery/issues/detail?id=88
//$doc = phpQuery::newDocumentXML('');
//$doc['foo']->find('bar')->andSelf()->addClass('test');
//$doc->dump();
// http://code.google.com/p/phpquery/issues/detail?id=90
//print phpQuery::newDocument('')
// ->find('body')
// ->load('http://localhost/phpinfo.php');
// http://code.google.com/p/phpquery/issues/detail?id=91
// phpQuery::newDocumentXML('');
// print pq('foo')->filter('[bar$=c]');
// FIXME http://code.google.com/p/phpquery/issues/detail?id=93
//$doc = 'SomeTitle
//
//blah
//';
//$pq = phpQuery::newDocument($doc);
//echo $pq;
# http://code.google.com/p/phpquery/issues/detail?id=94#makechanges
//$doc = phpQuery::newDocument();
//$test = pq(
//'
//
//
//
//
//
//
//
//'
//);
// http://code.google.com/p/phpquery/issues/detail?id=96
//$doc = phpQuery::newDocument('');
//$doc = phpQuery::newDocument('');
//print $doc['select']->val(3)->end()->script('print_source');
//(16:27:56) jomofcw: $option_element =
//(16:27:56) jomofcw: pq('')
//(16:27:56) jomofcw: ->attr('value',$section['id'])
//(16:27:56) jomofcw: ->html($section['libelle'])
//(16:27:56) jomofcw: ;
//(16:29:27) jomofcw: where $section['libelle'] is from a database UTF-8
//16:30
//(16:30:20) jomofcw: the value of $section['libelle'] is exactly "3°" in database...
# http://code.google.com/p/phpquery/issues/detail?id=98
//$doc = phpQuery::newDocument('');
//print $doc['select']->val(0)->end()->script('print_source');
// http://groups.google.com/group/phpquery/browse_thread/thread/1c78f7e41fc5808c?hl=en
//$doc = phpQuery::newDocumentXML("
//
//
//
//
//
//
//
//
//
//
//");
//foreach($doc['Schema ElementType AttributeType'] as $campo){
// if( count(pq($campo)->find('datatype'))==1 ){
// var_dump(pq($campo)->find('datatype')->attr('dt:type')); // Should print "string" but prints ""
// }
//}
// http://code.google.com/p/phpquery/issues/detail?id=97
//function jsonSuccess($data) {
// var_dump($data);
//}
//$url = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json';
//phpQuery::ajaxAllowHost('api.flickr.com');
//phpQuery::getJSON($url, array('jsoncallback' => '?'), 'jsonSuccess');
//var_dump(json_decode($json));
//require_once('../phpQuery/Zend/Json/Decoder.php');
//var_dump(Zend_Json_Decoder::decode($json));
#var_dump(''.phpQuery::newDocumentFile("http://www.chefkoch.de/magazin/artikel/943,0/AEG-Electrolux/Frischer-Saft-aus-dem-Dampfgarer.html"));
// var_dump(phpQuery::newDocument(
// str_replace('
// ', '',
// file_get_contents("http://www.chefkoch.de/magazin/artikel/943,0/AEG-Electrolux/Frischer-Saft-aus-dem-Dampfgarer.html"
// ))));
// http://code.google.com/p/phpquery/issues/detail?id=102
// $doc = phpQuery::newDocumentFileHTML('http://www.google.de');
// //$doc = phpQuery::newDocument('');
// $images = $doc['img']->dump();
//
// $foo = 'aaa';
// var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*');
// var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*');
// http://code.google.com/p/phpquery/issues/detail?id=67
//$doc = phpQuery::newDocumentXML("");
//$doc['node1']->data('foo', 'bar');
//var_dump($doc['node1']->data('foo'));
//$doc['node1']->removeData('foo');
//var_dump($doc['node1']->data('foo'));
//$doc['node1']->data('foo.bar', 'bar');
//var_dump($doc['node1']->data('foo.bar'));
//var_dump(phpQuery::$documents[$doc->getDocumentID()]->data);
// xhtml fragments
//$doc = phpQuery::newDocumentXHTML("
");
//print $doc;
$doc = phpQuery::newDocument('');
//$content_string = str_repeat('a', 99988);
$content_string = str_repeat(str_repeat('a', 350)."\n", 350);
//var_dump(strlen($content_string));
?>php('echo $content_string;');
//pq('#content')->php('echo '.var_export($content_string, true));
$doc->dumpTree();
?>php());
?>
'.$doc->php());