[XForms] xf:copy of element node then text node results in wrong instance data. Bug 328393, r=doronr+smaug

This commit is contained in:
aaronr%us.ibm.com 2006-02-27 21:04:34 +00:00
Родитель 981041e957
Коммит 8a0dfe45ec
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -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);
}