pyquery icon indicating copy to clipboard operation
pyquery copied to clipboard

remove() method have bug

Open PengLuan opened this issue 3 years ago • 2 comments

I use pyquery like this `from pyquery import PyQuery

if name == 'main': query = PyQuery('AABBCC') need_remove_dict = dict() for item in query('span').items(): item.remove() print(query.outer_html())`

I except got 'AACC' but I got 'AA CC' , why use a space to replace that element i want remove?

PengLuan avatar May 23 '22 14:05 PengLuan

I use pyquery like this `from pyquery import PyQuery

if name == 'main': query = PyQuery("AABBCC") need_remove_dict = dict() for item in query('span').items(): item.remove() print(query.outer_html())`

I except got 'AACC' but I got 'AA CC' , why use a space to replace that element i want remove?

PengLuan avatar May 23 '22 14:05 PengLuan

I think it is not a bug,it's the same to jquery

hjdhnx avatar Nov 18 '22 02:11 hjdhnx