haysclark / as3-xpath

1 stars 0 forks source link

preceding-sibling axis not working correctly #25

Closed haysclark closed 10 years ago

haysclark commented 10 years ago

From r.weste...@gmail.com on July 02, 2010 03:49:24

The xpath statement //media[not(@type=preceding-sibling::media/@type)]

On

returns 3 results.

The same statement on

returns 2 results.

I think it should return 2 results in both cases.

Original issue: http://code.google.com/p/xpath-as3/issues/detail?id=25

haysclark commented 10 years ago

From peterj...@gmail.com on March 08, 2011 15:35:01

This is as expected.

In the first case, none of the elements have a @type that is the same as its previous sibling. So the negation of the condition is true for all 3 of them.

In the second case, only the second element has the same @type as its previous sibling. Again the condition is negated so is true for the other two.

Status: Invalid

haysclark commented 10 years ago

From r.weste...@gmail.com on March 09, 2011 13:00:21

Thank you for your response. Now I actually feel kind of stupid for even posting this. Again thank you for pointing it out.