numeric maxlength is -1");

    test(
      function () {
        assert_throws_dom("INDEX_SIZE_ERR", function () {
          document.getElementById("assign-negative").maxLength = -5;
        });
      }, "Assigning negative integer throws IndexSizeError");

    test(
      function () {
        document.getElementById("assign-non-numeric").maxLength = "not-a-number";
        assert_equals(document.getElementById("assign-non-numeric").maxLength, 0);
      }, "Assigning non-numeric to maxlength sets maxleng