Closed Bug 649731 Opened 13 years ago Closed 10 years ago

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

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ahal, Unassigned)

References

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
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.