  <textarea id="assign-negative"></textarea>
  <textarea id="assign-non-numeric"></textarea>

  <script>
    test(
      function () {
        assert_equals(document.getElementById("none").maxLength, -1);
      }, "Unset maxlength is -1");

    test(
      function () {
        assert_equals(document.getElementById("negative").maxLength, -1);
      }, "Negative maxlength is always -1");

    test(
      function () {
        assert_equals(document.getElementById("non-numeric").maxLength, -1);
      }, "Non-