bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

[1.1] Support iterated actions (i.e. the `while` attribute)



Core Graveyard
11 years ago
2 years ago


(Reporter: John L. Clark, Assigned: John L. Clark)


Firefox Tracking Flags

(Not tracked)



(2 attachments, 2 obsolete attachments)



11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070713 Firefox/
Build Identifier:

XForms 1.1 supports a general-purpose `while` attribute on all actions.  This
attribute is an XPath expression that is evaluated and interpreted as a boolean
value before the parent action is performed.  The parent action is performed repeatedly until the this value evaluates to false.  The reference to the specification (last call working draft as of this writing) is:


This bug report represents a request that this feature be implemented.

Reproducible: Always

Comment 1

11 years ago
could you attach a testcase or two, please?

Comment 2

11 years ago
Created attachment 274191 [details]
Test form demonstrating `while` functionality

The `insert` action bound to the trigger in this test case should fire repeatedly until the indicated number of `people` elements have been added.  Instead, it currently ignores the `while` attribute and fires just once, unconditionally.

Comment 3

11 years ago
Created attachment 284525 [details]
Fix for bug in preceding test form

The previous test form had a bug; this form fixes that bug.
Attachment #274191 - Attachment is obsolete: true

Comment 4

11 years ago
Created attachment 284527 [details]
Correct version of the updated test form

The previous fix was the wrong form.  This form should be correct.
Attachment #284525 - Attachment is obsolete: true

Comment 5

11 years ago
Created attachment 289505 [details]
Test of an infinite while loop

In comment 19 to bug 388976, Olli suggested that I add functionality that deals with the case of an infinite loop.  This attachment provides such a case to test that functionality.
Assignee: nobody → jlc6
This should be now fixed, see Bug 388976.
Last Resolved: 11 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.