failure to locate elements

Issue #54 resolved
created an issue

I have include two files. The first file is a proper subset of the second. In the first file, the p and div elements are not found. In the second file the p and div elements are correctly found.

This issue was found in using PyQuery via WebTest but it fails when using PyQuery directly. The version in use is 1.2.1.

Example: {{{


from pyquery import PyQuery f = open('f1','r') s = f.close() d = PyQuery(s) print len(d('p')) #should be 1 for both files }}}