зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cae19b1c96
Коммит
0e8c55e491
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче