diff --git a/index.js b/index.js index 7b2aaee..7082753 100644 --- a/index.js +++ b/index.js @@ -827,6 +827,10 @@ function Binding() { Binding.prototype.type = 'Binding'; Binding.prototype.update = function() { this.template.update(this.context, this); + + if (this.node && this.node.parentElement.tagName === 'TEXTAREA') { + this.node.parentElement.value = this.node.data; + } }; function NodeBinding(template, context, node) { @@ -916,7 +920,7 @@ function escapeAttribute(string) { //// IE shims & workarounds //// // General notes: -// +// // In all cases, Node.insertBefore should have `|| null` after its second // argument. IE works correctly when the argument is ommitted or equal // to null, but it throws and error if it is equal to undefined. @@ -955,7 +959,7 @@ function setNodeProperty(node, key, value) { // In IE, input.defaultValue doesn't work correctly, so use input.value, // which mistakenly but conveniently sets both the value property and attribute. - // + // // Surprisingly, in IE <=7, input.defaultChecked must be used instead of // input.checked before the input is in the document. // http://webbugtrack.blogspot.com/2007/11/bug-299-setattribute-checked-does-not.html