josh-techindeed / phpquery

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

HTML page parse error when html tag is missing (with examples) #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. $doc = 
phpQuery::newDocumentHTML('http://www.mkiv.com/techarticles/alignment/index.html
');
OR
2. $doc = phpQuery::newDocumentHTML('http://www.bajaoverland.com/elocker.php');

What is the expected output? What do you see instead?

These 2 documents are not parsing correctly. They are missing HTML tag but 
contain both HEAD and BODY tags.

What happens: Only the HEAD element is parsed, the BODY is ignored.

Correct behavior: The BODY element should also be parsed.

What version of the product are you using? On what operating system?

phpQuery 0.9.5
PHP 5.3.0
Windows XP SP3

Please provide any additional information below.

Original issue reported on code.google.com by rustam...@gmail.com on 5 Nov 2010 at 6:53