rem: if (element.name) element.name= xformsAppendRepeatSuffix(element.name, idSuffixWithDepth); 
add: if (element.name) { var newName = xformsAppendRepeatSuffix(element.name, idSuffixWithDepth); if (ORBEON.xforms.Globals.isRenderingEngineTridend) {   var clone = document.createElement("<" + element.tagName + " name='" + newName + "'>"); for (var attributeIndex = 0; attributeIndex < element.attributes.length; attributeIndex++) { var attribute = element.attributes[attributeIndex]; if (attribute.nodeName.toLowerCase() != "name" && attribute.nodeName.toLowerCase() != "height" && attribute.nodeValue) clone.setAttribute(attribute.nodeName, attribute.nodeValue); } YAHOO.util.Event.addListener(clone, "focus", ORBEON.xforms.Events.focus); YAHOO.util.Event.addListener(clone, "blur", ORBEON.xforms.Events.blur); YAHOO.util.Event.addListener(clone, "change", ORBEON.xforms.Events.change); element.replaceNode(clone); } else { element.name = newName; } } 
context: function xformsAddSuffixToIds(element, idSuffix, repeatDepth) {    var idSuffixWithDepth = idSuffix;    for (var repeatDepthIndex = 0; repeatDepthIndex < repeatDepth; repeatDepthIndex++)         idSuffixWithDepth += XFORMS_SEPARATOR_2 + "1";    if (element.id)        element.id = xformsAppendRepeatSuffix(element.id, idSuffixWithDepth);    if (element.htmlFor)        element.htmlFor = xformsAppendRepeatSuffix(element.htmlFor, idSuffixWithDepth);    if (element.name)        element.name= xformsAppendRepeatSuffix(element.name, idSuffixWithDepth);    // Remove references to hint, help, alert, label as they might have changed    if (xformsIsDefined(element.labelElement)) element.labelElement = null;    if (xformsIsDefined(element.hintElement)) element.hintElement = null;    if (xformsIsDefined(element.helpElement)) element.helpElement = null;    if (xformsIsDefined(element.alertElement)) element.alertElement = null;    if (xformsIsDefined(element.divId)) element.divId = null;    element.styleListenerRegistered = false;    for (var childIndex = 0; childIndex < element.childNodes.length; childIndex++) {        var childNode = element.childNodes[childIndex];        if (childNode.nodeType == ELEMENT_TYPE) {            if (childNode.id && childNode.id.indexOf("repeat-end-") == 0) repeatDepth--;            xformsAddSuffixToIds(childNode, idSuffix, repeatDepth);            if (childNode.id && childNode.id.indexOf("repeat-begin-") == 0) repeatDepth++        }    }}
meta: 7801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7801/3f5956bfdafe75ab7f3056937ba33efa562bfd77/xforms.js/clean/src/examples/web/ops/javascript/xforms.js