Closed GoogleCodeExporter closed 9 years ago
Thanks for reporting this issue.
However if you look at xPath specification this is the expected behavior and it
affects all elements.
If you look here: http://www.w3.org/TR/xpath/#path-abbrev there is the
following note:
"NOTE: The location path //para[1] does not mean the same as the location path
/descendant::para[1]. The latter selects the first descendant para element; the
former selects all descendant para elements that are the first para children of
their parents."
Now if you go to this test page: http://fiddle.jshell.net/xDEuH/3/show/
and run //select[position()=1] and /descendant::select[position()=1] you will
see the difference.
Original comment by pierre.t...@gmail.com
on 5 Jun 2011 at 1:30
Original issue reported on code.google.com by
rocorn...@gmail.com
on 31 May 2011 at 1:53