rem: dynamicStateElement.appendChild(dynamicStateElement.ownerDocument.createTextNode(target.form.xformsDynamicState.value)); 
context: function xformsFireEvent(target, eventName, value, incremental) {    // Build request    var eventFiredElement = xformsCreateElementNS(XXFORMS_NAMESPACE_URI, "xxforms:event-request");        // Add static state    var staticStateElement = xformsCreateElementNS(XXFORMS_NAMESPACE_URI, "xxforms:static-state");    staticStateElement.appendChild(staticStateElement.ownerDocument.createTextNode(target.form.xformsStaticState.value));    eventFiredElement.appendChild(staticStateElement);        // Add dynamic state    var dynamicStateElement = xformsCreateElementNS(XXFORMS_NAMESPACE_URI, "xxforms:dynamic-state");    dynamicStateElement.appendChild(dynamicStateElement.ownerDocument.createTextNode(target.form.xformsDynamicState.value));    eventFiredElement.appendChild(dynamicStateElement);    // Add action    var actionElement = xformsCreateElementNS(XXFORMS_NAMESPACE_URI, "xxforms:action");    eventFiredElement.appendChild(actionElement);    // Add event    var eventElement = xformsCreateElementNS(XXFORMS_NAMESPACE_URI, "xxforms:event");    actionElement.appendChild(eventElement);    eventElement.setAttribute("name", eventName);    eventElement.setAttribute("source-control-id", target.id);    if (value != null)        eventElement.appendChild(eventElement.ownerDocument.createTextNode(value));    // If last request added to queue is incremental, remove it        if (document.xformsLastRequestIsIncremental && document.xformsNextRequests.length > 0) {        document.xformsNextRequests.pop();        document.xformsNextTargets.pop();    }    // Set as next request to execute and trigger execution    document.xformsLastRequestIsIncremental = incremental;    document.xformsNextRequests.push(eventFiredElement.ownerDocument);    document.xformsNextTargets.push(target);    xformsExecuteNextRequest();        return false;}
meta: 9823	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9823/6bcd374e519013fb0e02ecbf8cca0dfb057cb8c1/xforms.js/buggy/src/examples/web/oxf-theme/javascript/xforms.js