From c96b26e260c6eb32976d0d38a048531699c630d5 Mon Sep 17 00:00:00 2001 From: Josh Ellithorpe Date: Thu, 29 Sep 2011 19:47:27 -0700 Subject: [PATCH] Swapped order of element.innerHTML and element.value so it fixes IE whitespace stripping issues. --- build_support/boot_textarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_support/boot_textarea.js b/build_support/boot_textarea.js index b4c5846a..028f34b2 100644 --- a/build_support/boot_textarea.js +++ b/build_support/boot_textarea.js @@ -187,8 +187,8 @@ function setupContainer(element, getValue) { var oldSumit = parentNode.onsubmit; // Override the onsubmit function of the form. parentNode.onsubmit = function(evt) { - element.value = getValue(); element.innerHTML = getValue(); + element.value = getValue(); // If there is a onsubmit function already, then call // it with the current context and pass the event. if (oldSumit) {