File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
- #!/usr/bin/php
1
+ #!/usr/bin/env php
2
2
<?php
3
3
if (!isset ($ argv [1 ]) || $ argv [1 ] == 'help ' || $ argv [1 ] == '--help ' || $ argv [1 ] == '-h ' )
4
4
die ("Usage:
Original file line number Diff line number Diff line change 3
3
* phpQuery is a server-side, chainable, CSS3 selector driven
4
4
* Document Object Model (DOM) API based on jQuery JavaScript Library.
5
5
*
6
- * @version 0.9.5 RC1
6
+ * @version 0.9.5 RC2
7
7
* @link http://code.google.com/p/phpquery/
8
8
* @link http://phpquery-library.blogspot.com/
9
9
* @link http://jquery.com/
31
31
* @package phpQuery
32
32
*/
33
33
abstract class phpQuery {
34
+ /**
35
+ * XXX: Workaround for mbstring problems
36
+ *
37
+ * @var bool
38
+ */
34
39
public static $ mbstringSupport = true ;
35
40
public static $ debug = false ;
36
41
public static $ documents = array ();
Original file line number Diff line number Diff line change 263
263
// ))));
264
264
265
265
// http://code.google.com/p/phpquery/issues/detail?id=102
266
- $ doc = phpQuery::newDocumentFileHTML ('http://www.google.de ' );
267
- //$doc = phpQuery::newDocument('');
268
- $ images = $ doc ['img ' ]->dump ();
269
-
270
- $ foo = 'aaa ' ;
271
- var_dump (mb_ereg_match ('^[\w|\||-]+$ ' , $ foo ) || $ foo == '* ' );
272
- var_dump (preg_match ('@^[\w|\||-]+$@ ' , $ foo ) || $ foo == '* ' );
266
+ // $doc = phpQuery::newDocumentFileHTML('http://www.google.de');
267
+ // // $doc = phpQuery::newDocument('');
268
+ // $images = $doc['img']->dump();
269
+ //
270
+ // $foo = 'aaa';
271
+ // var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*');
272
+ // var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*');
273
273
274
274
// http://code.google.com/p/phpquery/issues/detail?id=67
275
275
//$doc = phpQuery::newDocumentXML("<node1/><node2/>");
280
280
//$doc['node1']->data('foo.bar', 'bar');
281
281
//var_dump($doc['node1']->data('foo.bar'));
282
282
//var_dump(phpQuery::$documents[$doc->getDocumentID()]->data);
283
+
284
+ // xhtml fragments
285
+ $ doc = phpQuery::newDocumentXHTML ("<p><br/></p> " );
286
+ print $ doc ;
You can’t perform that action at this time.
0 commit comments