qzwbqkz / phpquery

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

pq() not getting called - code broken somewhere #200

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
require_once 'phpQuery-onefile.php';
$html = file_get_contents('http://www.anysite.com');
phpQuery::newDocumentXHTML($html);
$elements = pq('img');
//DO NOT REACH HERE

---

What is the expected output? What do you see instead?
// should enter the below function, which is at the bottom of the file 
function pq($arg1, $context = null){//...} 

What version of the product are you using? On what operating system?
phpQuery-onefile.php (  phpQuery 0.9.5 - One File Release)
Mac OS X 10.6

Please provide any additional information below.
I fixed the misspeling for hLtml to html at line somewhere at 518

Original issue reported on code.google.com by saad.sh...@gmail.com on 20 Dec 2011 at 5:27

GoogleCodeExporter commented 8 years ago
Found this fix in one of the earlier issues. 
if newDocumentXHTML doesnt work. try newDocumentHTML or newDocumentXML.

-

Original comment by saad.sh...@gmail.com on 20 Dec 2011 at 5:34