gawel / pyquery

A jquery-like library for python
http://pyquery.rtfd.org/
Other
2.29k stars 182 forks source link

outer_html () returns incorrect value #168

Closed lesssn closed 6 years ago

lesssn commented 7 years ago
gawel commented 6 years ago

Good idea. It's done... after a couple monthes... :) Sorry for the lag.

bepetersn commented 6 years ago

Hey, I noticed a similar issue with a self-closing tag and realized that maybe PyQyery.html() uses a method of 'xml' by default still, whereas with the above commit you changed outer_html() to have a default method of 'html'.

My use case is comparing the results of calling PyQuery.html from a whole page with PyQuery.outer_html on a portion of the page, searching for that portion, and removing it. I was having trouble getting this kind of use case to work because of the above reason. Just a thought.