Closed capital-G closed 8 years ago
You need to remove namespaces http://pythonhosted.org//pyquery/api.html?highlight=namespace#pyquery.pyquery.PyQuery.remove_namespaces
Oh, didn't know about that, never heard of HTML-namespaces. Is there a reason it behaves different than jQuery?
just because lxml is taking care of namespaces even if it's useless for html
Hi there,
I tried to manipulate this DOM:
In PyQuery (
from pyquery import PyQuery as pq
) I don't get proper results:But jQuery returns everything properly: https://jsfiddle.net/d500pqz2/
Hope this is enough help