rem: if (ORBEON.xforms.Globals.isRenderingEngineTridend) {  
add: if (element.tagName.toLowerCase() == "input" && element.type.toLowerCase() == "radio" && ORBEON.xforms.Globals.isRenderingEngineTridend) {    
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) {        var newName = xformsAppendRepeatSuffix(element.name, idSuffixWithDepth);        if (ORBEON.xforms.Globals.isRenderingEngineTridend) {            // IE does not support changing the name of elements, so we have to recreate the element instead. See:            // http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/name_2.asp            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;        }    }    // Remove references to hint, help, alert, label as they might have changed    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: 5390	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5390/19cbf1b0bd70719df80ad408c138ff04bd09cc39/xforms.js/buggy/src/examples/web/ops/javascript/xforms.js