vovanmozg / phpquery

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

Parent() and Parents() method don't work like in jQuery #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. using the HTML code like this "$myHTML = '<ul><li></li><li><ul
id="myULRef"><li><ul><li
id="myLIRef"></li></ul></li></ul></li><li></li></ul>';"
2. trying to perform this
$($myHTML)->find('li#myLIRef')->parent('ul#myULRef')->html();
3. It display nothing cause it don't dfind the parent (seems to get only
the unik direct parent using a filter or not)

What is the expected output? What do you see instead?
Should display "<li><ul><li id="myLIRef"></li></ul></li>".

What version of the product are you using? On what operating system?
the last using the SVN (0.9.1 beta3)

Original issue reported on code.google.com by nicolas....@gmail.com on 27 Aug 2008 at 10:04

GoogleCodeExporter commented 8 years ago
In some case it work well... in other not :s... strange. I search to explain it 
and
comment here after.

Original comment by nicolas....@gmail.com on 27 Aug 2008 at 12:36

GoogleCodeExporter commented 8 years ago
I think that's me who don't really understand how parent() and parents() work in
jQuery ;).
This issue can be deleted.

Original comment by nicolas....@gmail.com on 28 Aug 2008 at 7:33

GoogleCodeExporter commented 8 years ago

Original comment by tobiasz....@gmail.com on 28 Aug 2008 at 10:31