pr0blems / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

Prev() doesn't work with set of element #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. having this dom : <dom><span></span><input
name="ville"/><span></span><input name="ville"/></dom>
2. doing $myDOM->find('input[name="ville"]')->prev('span')->html('test');
3.

What is the expected output? What do you see instead?
I get the dom result : <dom><span>test</span><input
name="ville"/><span></span><input name="ville"/></dom> instead of
<dom><span>test</span><input name="ville"/><span>test</span><input
name="ville"/></dom>

What version of the product are you using? On what operating system?
r307

Please provide any additional information below.
That's work in jQuery. See the method definition "Get a SET OF ELEMENTS
containing the unique previous siblings of EACH OF THE MATCHED set of
elements."
Thanks to fix it :D !

Original issue reported on code.google.com by nicolas....@gmail.com on 28 Nov 2008 at 8:49

GoogleCodeExporter commented 8 years ago
Fixed in r310

Original comment by tobiasz....@gmail.com on 28 Nov 2008 at 10:16