samsol38 / phpquery

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

filters and next/sibling selectors do not work in complex contexts #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
`+` and `~` don't seem to work properly when the second selector is a `:` 
filter when in the document context (e.g. `$doc['input + :hidden']`). Neither 
seem to work at all in more specific contexts `filter()` method, `is()` method, 
`:not()` selector, etc. (e.g. `$doc['input']->is('input + input')`, 
`$doc[':not(input + input)']`).

HTML: `<input type="hidden" /><input type="checkbox" />`

`input + input` works
`input[type=hidden] + input[type=checkbox]` works
`input[type=hidden] + :checkbox` does not work
`:hidden + :checkbox` does not work
`:hidden + input[type=checkbox]` works
`:not(input + input)` does not work

Original issue reported on code.google.com by kingers...@gmail.com on 13 Feb 2011 at 8:02