A couple other points -
All browsers that support javascript return read/write values for textarea.value,
consistent with the input elements. But you can't use getAttribute('value') or setAttribute('value') with a textarea.
You can also read a textarea's 'type' property,though type is not an attribute either.
If you set the value property, textarea.value=string;it is equivilent to
textarea.appendChild(document.createTextNode(string))-
A textarea can not contain any other elements, only text nodes.
The text in the textarea set from value will be the literal characters from the string,
while setting the innerHTML property will escape any entities and minimize white-space.