- From: John Boyer <boyerj@ca.ibm.com>
- Date: Fri, 12 Feb 2010 13:44:41 -0800
- To: Charles F Wiecha <wiecha@us.ibm.com>
- Cc: public-forms@w3.org
- Message-ID: <OF56F2F13D.B25F521A-ON882576C8.00771955-882576C8.007772D5@ca.ibm.com>
HI Charlie, Actually, upon reviewing the meaning of "cancelable", it turns out that sticking with defaultAction="cancel" is the better approach because DOM2Events defines "cancelable" as an event whose default action can be cancelled. This test seems to be keying into language in the XForms spec that talks about setting cancelable="true" on the dispatch element for a predefined event (like xforms-reset), so it in fact better to test that the default action is actually cancelled. Unfortunately, this has implications for what to do about test 10.8.e, which I'll respond to separately. Cheers, John M. Boyer, Ph.D. STSM, Lotus Forms Workplace, Portal and Collaboration Software IBM Victoria Software Lab E-Mail: boyerj@ca.ibm.com Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw From: Charles F Wiecha/Watson/IBM@IBMUS To: John Boyer <boyerj@ca.ibm.com> Cc: public-forms@w3.org Date: 02/12/2010 11:42 AM Subject: Re: Test 10.8.f needs work Attached is revised 10.8.f. Note that it is correct that the original test was using ev:defaultAction="cancel" rather than ev:propagate="stop" since it's the default action of resetting the model that is to be canceled vs. simple propagation of the event. I've replace the xf:reset with xf:dispatch and moved the handlers and attributes around... There's a bug related to some of these XML events in Ubiquity so I can't test this there (and unfortunately, the FF extension for 3.5 seems to have broken the xf:dispatch element so that's a no-go too...) but if anybody cares to try this elsewhere or sees problems let me know.: Thanks, Charlie [attachment "W3C-10.8.f.xhtml" deleted by John Boyer/CanWest/IBM] Charles Wiecha Multichannel Web Interaction IBM T.J. Watson Research Center P.O. Box 704 Yorktown Heights, N.Y. 10598 Phone: (914) 784-6180, T/L 863-6180, Cell: (914) 282-3483 wiecha@us.ibm.com From: John Boyer <boyerj@ca.ibm.com> To: public-forms@w3.org Date: 02/04/2010 11:13 AM Subject: Test 10.8.f needs work Sent by: public-forms-request@w3.org Test 10.8.f purports to test the dispatch element but does not contain a dispatch element! The reset action technically dispatches an xforms-reset, but dispatch should be used for cleanliness. However, many of the same complaints exist as I posted for test 10.8.e also exist here. The event attributes are attached to the wrong element, and stopPropagation needs to be used. John M. Boyer, Ph.D. STSM, Lotus Forms Workplace, Portal and Collaboration Software IBM Victoria Software Lab E-Mail: boyerj@ca.ibm.com Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw
Attachments
- image/gif attachment: graycol.gif
- image/gif attachment: ecblank.gif
Received on Friday, 12 February 2010 21:45:20 UTC