xforms bug 311019 - label bound to model doesn't work for choices inside of select. Patch by alexander surkov, r=allan,me

This commit is contained in:
doronr%us.ibm.com 2005-10-05 16:17:48 +00:00
Родитель cae19b1c96
Коммит 0e8c55e491
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -331,7 +331,7 @@
// we only care about element nodes
if (child.nodeType == child.ELEMENT_NODE) {
if (child.localName == "label") {
label = child.textContent;
optGroup.appendChild(child.cloneNode(true));
} else if (child.localName == "item") {
var itemElm = child.QueryInterface(Components.interfaces.nsIXFormsItemElement);
var itemValue = itemElm.value;
@ -353,9 +353,6 @@
}
}
// set the label
optGroup.setAttribute("label", label);
return optGroup;
]]>
</body>
@ -642,7 +639,7 @@
// we only care about element nodes
if (child.nodeType == child.ELEMENT_NODE) {
if (child.localName == "label") {
label.textContent = child.textContent;
label.appendChild(child.cloneNode(true));
} else if (child.localName == "item") {
var itemElm =
child.QueryInterface(Components.interfaces.nsIXFormsItemElement)