Message138230
| Author |
patrick.vrijlandt |
| Recipients |
patrick.vrijlandt |
| Date |
2011年06月13日.10:11:32 |
| SpamBayes Score |
3.193471e-05 |
| Marked as misclassified |
No |
| Message-id |
<1307959893.21.0.719611338142.issue12323@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
From http://effbot.org/zone/element-xpath.htm:
[position] (New in 1.3) Selects all elements that are located at the given position. The position can be either an integer (1 is the first position), the expression "last()" (for the last position), or a position relative to last() (e.g. "last()-1" for the second to last position). This predicate must be preceeded by a tag name.
Testing shows, that [0] is accepted, and seems to be [last()].
However [-1] selects no elements. I think these expressions should raise an exception. (Or the feature should be 0-based and behave like python list indices) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年06月13日 10:11:33 | patrick.vrijlandt | set | recipients:
+ patrick.vrijlandt |
| 2011年06月13日 10:11:33 | patrick.vrijlandt | set | messageid: <1307959893.21.0.719611338142.issue12323@psf.upfronthosting.co.za> |
| 2011年06月13日 10:11:32 | patrick.vrijlandt | link | issue12323 messages |
| 2011年06月13日 10:11:32 | patrick.vrijlandt | create |
|