rem: xformsAddEventListener(control, "click", function(event) { var events = new Array(); var target = getEventTarget(event);    while (!xformsArrayContains(target.className.split(" "), "xforms-output")) target = target.parentNode; events.push(xformsCreateEventArray(target, "DOMFocusIn", null)); xformsFireEvents(events); }); 
add: control.watch("value", function(property, oldvalue, newvalue) { var span = this; var textField = span.childNodes[1]; span.value = newvalue; textField.value = newvalue; xformsDispatchEvent(textField, "change"); return newvalue; }); 
context:                 xformsAddEventListener(control, "click", function(event) {                    var events = new Array();                    var target = getEventTarget(event);                    // In the case of appearance="xxforms:html, target can be an element inside                    // the xforms-output, not the xforms-output itself. So we are here looking for the                    // xforms-parent when necessary.                    while (!xformsArrayContains(target.className.split(" "), "xforms-output"))                        target = target.parentNode;                    events.push(xformsCreateEventArray(target, "DOMFocusIn", null));                    xformsFireEvents(events);                });
meta: 5390	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5390/e0a15c2148b52c8dbe739113139cb5ddda84267e/xforms.js/buggy/src/examples/web/ops/javascript/xforms.js