form_trim.html.erb 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <link rel="stylesheet" href="/assets/tests/qunit-1.21.0.css">
  2. <script src="/assets/tests/qunit-1.21.0.js"></script>
  3. <script src="/assets/tests/form_trim.js"></script>
  4. <style type="text/css">
  5. body {
  6. padding-top: 0px;
  7. }
  8. </style>
  9. <script type="text/javascript">
  10. </script>
  11. <div id="qunit" class="u-dontfold"></div>
  12. <div>
  13. <form class="form-stacked pull-left" id="form1">
  14. <input type="text" value="" name="input1">
  15. <input type="text" value="
  16. " name="input2">
  17. <input type="text" value=" a " name="input3">
  18. <input type="text" value=" a b " name="input4">
  19. <input type="text" value=" äö ü" name="input5">
  20. <input type="text" value=" a " name="input6">
  21. <input type="text" value=" b " name="input6">
  22. <input type="text" value=" c " name="input6">
  23. <input type="text" value=" d " name="input6">
  24. <textarea name="textarea1"></textarea>
  25. <textarea name="textarea2"> </textarea>
  26. <textarea name="textarea3"> a </textarea>
  27. <textarea name="textarea4">test
  28. 123
  29. </textarea>
  30. <div contenteditable="true" data-name="ce1"> lala </div>
  31. <div contenteditable="true" data-name="ce2"> la
  32. la </div>
  33. </form>
  34. </div>