W3C home > Mailing lists > Public > public-forms@w3.org > February 2010

Re: Related to the DOM* events deprecation in DOM 3: could XForms support load/unload?

From: John Boyer <boyerj@ca.ibm.com>
Date: Wed, 3 Feb 2010 17:02:55 -0800
To: Erik Bruchez <ebruchez@orbeon.com>
Cc: public-forms@w3.org
Message-ID: <OFF6E5092D.BDDF574E-ON882576BF.0078824D-882576C0.0005C287@ca.ibm.com>
Hi Erik,

The load event could be a really useful event for us to start talking 
formally about the XForms bootstrap. 
Right now, we have this nebulous and squishy idea of an XForms processor, 
a "super model" of sorts, that kicks off the sequence of 
xforms-model-construct events for all model elements in the document.
In actual javascript implementations, there is the tendency to do this 
kick-off in response to the load event anyway, so it seems to make sense 
to start talking about it as the initiator of the XForms processor.
Similarly, the unload is that which kicks off the process of dispatching 
xforms-model-destruct.

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:
Erik Bruchez <ebruchez@orbeon.com>
To:
public-forms@w3.org
Date:
02/03/2010 12:15 PM
Subject:
Related to the DOM* events deprecation in DOM 3: could XForms support 
load/unload?



All,

During today's call we talked about adopting the click, focus/blur,
focusin/focusout from DOM Events. I am wondering if it would makes
sense to adopt load/unload [1] as well.

The benefit would be the ability to use a shorter and more widely
known event name.

DOM Events 3 says about load that "If this event type is dispatched,
implementations are required to dispatch this event at least on the
Document node." This seems to imply that an implementation is allowed
to dispatch it to other nodes.

Since that event doesn't bubble, it would be safe for an XForms
processor to dispatch load to XForms models.

One question is at which point in the lifecycle of XForms
initialization would this take place. Would it replace xforms-ready?

I am not 100% convinced that this would make sense but wondering what
people think.

-Erik

[1] 
http://dev.w3.org//2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#event-type-load
Received on Thursday, 4 February 2010 01:03:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:53 UTC