Swapped order of element.innerHTML and element.value so it fixes IE whitespace stripping issues.

This commit is contained in:
Josh Ellithorpe 2011-09-29 19:47:27 -07:00
commit c96b26e260

View file

@ -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) {