anchor.diff:        <input id="input">
         ''', treeSanitizer: new NullTreeSanitizer());
   
  -  var implicitMaxLength = 524288;
     StringBuffer testString = new StringBuffer();
     var input = document.getElementById("input");
   
  -  attempt(length, expected) {
  +  attempt(length) {
       debug("Attempting to insert $length characters with maxLength = ${input.getAttribute("maxlength")}.");
   
       if (testString.length > length)
  
positive.code: import "dart:html";
  import 'dart:math' as Math;
  import "../../testcommon.dart";
  import "../../../Utils/async_utils.dart";
  
  main() {
    document.body.setInnerHtml('''
  
negative.code: 
      for (var i = testString.length; i < length; ++i)
        testString.write(i % 10);
      input.value = testString.toString();
      shouldBe(input.value.length, length);
    }
  
    //var stringLengthsToTest = [0, 5, 100, 101, 200, 524287, 524288, 524289, 530000];
    var stringLengthsToTest = [0, 5, 100, 101, 200, 524287, 524288];
    var maxLengthsToTest = ["-1", "100", "524288", "600000"];
  
    for (var i = 0; i < stringLengthsToTest.length; ++i) {
      var stringLength = stringLengthsToTest[i];
      for (var j = 0; j < maxLengthsToTest.length; ++j) {
        var maxLength = maxLengthsToTest[j];
        input.setAttribute("maxLength", maxLength);
        attempt(stringLength);
      }
    }
  
    debug('Some tests for .maxLength property.');
    input = document.createElement("input");
    shouldThrow(() => input.maxLength = -100,
        (e) => e is DomException && e.name == DomException.INDEX_SIZE);
    input.maxLength = 100;
    shouldBe(input.getAttribute('maxlength'), '100');
  