mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
cae19b1c96
commit
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)
|
||||
|
Loading…
Reference in New Issue
Block a user