4 <p>Testing cloneNode(true) on textarea element works correctly
</p>
6 <textarea name=
"" id=
"textarea1" cols=
"15" rows=
"2">InitialText
</textarea>
7 <textarea name=
"" id=
"textarea2" cols=
"15" rows=
"2">InitialText
</textarea>
8 <textarea name=
"" id=
"textarea3" cols=
"15" rows=
"2">InitialText
</textarea>
12 var textarea1
= document
.getElementById('textarea1');
13 document
.body
.appendChild(textarea1
.cloneNode(true));
16 var textarea2
= document
.getElementById('textarea2');
18 document
.execCommand('InsertText', false, 'InsertedText ');
19 document
.body
.appendChild(textarea2
.cloneNode(true));
23 var textarea3
= document
.getElementById('textarea3');
24 textarea3
.value
= "NewText";
25 document
.body
.appendChild(textarea3
.cloneNode(true));