Make lookup expressions 'deterministic' (also make them not suck)

RESOLVED WONTFIX

Status

Testing Graveyard
Mozmill
RESOLVED WONTFIX
7 years ago
2 years ago

People

(Reporter: ahal, Unassigned)

Tracking

Details

(Whiteboard: [mozmill-next?][mozmill-2.0-])

In bug 639638 I added a small patch to allow users to select an element from a list with the '/[0]/' syntax. This can be used like so '/{"flex":1}/[0]/'.

This is not deterministic (not sure if this is the right word) because if the flex:1 part returns more than one element, the first item in the list will be returned by the /[0]/ part. If the flex:1 part only returns 1 element, then the first childnode of that element will be returned by the [0] part.

Harth suggested using notation like '/{"flex":1}[0]/ to select from lists instead.
Depends on: 639638
Whiteboard: [mozmill-next?][mozmill-2.0-]
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
(Assignee)

Updated

2 years ago
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.