code: function setInputDefaultValues(body) {
          var inputTags = Array.prototype.slice.call(body.querySelectorAll('input'));
          for (var i = 0; i < inputTags.length; i++) {
              var input = inputTags[i];
              if (input.value != null) {
                  input.defaultValue = input.value;
              }
          }
      }
docs: <input> .value property does not map to @value attribute, .defaultValue does. so we need to copy that value over if we want it to serialize into HTML <input value=""> without this there isn't a value attribute on any of the input tags