зеркало из https://github.com/mozilla/gecko-dev.git
[XForms] xf:copy of element node then text node results in wrong instance data. Bug 328393, r=doronr+smaug
This commit is contained in:
Родитель
981041e957
Коммит
8a0dfe45ec
|
@ -571,7 +571,14 @@
|
|||
// refresh process according to the spec...whether we really need
|
||||
// to or not.
|
||||
if (copySelectedOrDeselected.value == false) {
|
||||
this.accessors.setValue(contentEnvelope.textContent);
|
||||
// well, no copyItems are selected, so need to find the value
|
||||
// to set. Will be in the first child.
|
||||
var firstChild = contentEnvelope.firstChild;
|
||||
var value = null;
|
||||
if (firstChild) {
|
||||
value = firstChild.nodeValue;
|
||||
}
|
||||
this.accessors.setValue(value);
|
||||
} else {
|
||||
this.accessors.setContent(contentEnvelope, true);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче