Skip to content

Commit

Permalink
fixed gawel#78: items must take care or the parent
Browse files Browse the repository at this point in the history
  • Loading branch information
gawel committed Aug 17, 2014
1 parent 4185f47 commit a4b8425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyquery/pyquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def items(self, selector=None):
else:
elems = self
for elem in elems:
yield self.__class__(elem)
yield self.__class__(elem, **dict(parent=self))

def xhtml_to_html(self):
"""Remove xhtml namespace:
Expand Down

0 comments on commit a4b8425

Please sign in to comment.