chromium/chrome/test/data/autofill/field_changing_name_during_fill.html

<!-- A page that is used to test that autofilling works on site wehere. -->
<body>
  <form name="addr1.1" id="form1" action="https://example.com/" method="post">
    Name: <input type="text" name="firstname" id="firstname" autocomplete="given-name"><br>
    Country: <select name="country" id="country" onchange="CountryChanged()">
      <option value="CA">Canada</option>
      <option value="US">United States</option>
    </select> <br>
    Address: <input type="text" name="address" id="address"><br>
    City: <input type="text" name="city" id="city"><br>
    State: <select name="state" id="state">
      <option value="CA">CA</option>
      <option value="MA">MA</option>
      <option value="TX">TX</option>
      <option value="DC">DC</option>
    </select> <br>
    Zip: <input name="zip" id="zip"> <br>
    Company: <input name="company" id="company"> <br>
    Email: <input name="email" id="email"> <br>
    Phone: <input name="phone" id="phone"> <br>
    <input type="reset" value="Reset">
    <input type="submit" value="Submit" id="profile_submit">
  </form>
</body>
<script>
function CountryChanged() {
  document.getElementById('state').name = 'provice';
}

function hasFilled() {
  var phone_input = document.getElementById('phone');
  if (phone_input) {
    window.domAutomationController.send(phone_input.value != '');
  }
}
</script>