<html>
<!-- A page that is used to exercise formless form filling when an autocomplete
attribute is attached to every input element. -->
<body>
<div id="syntheticform1">
First Name: <input type="text" name="firstname" id="firstname" autocomplete="given-name"><br>
Address: <input type="text" name="address" id="address" autocomplete="address-line1"><br>
City: <input type="text" name="city" id="city" autocomplete="address-level2"><br>
<label for="state">State:</label>
<select name="state" id="state" autocomplete="address-level1">
<option value="--" selected>--</option>
<option value="CA">CA</option>
<option value="MA">MA</option>
<option value="NY">NY</option>
<option value="MD">MD</option>
<option value="OR">OR</option>
<option value="TX">TX</option>
<option value="OH">OH</option>
<option value="IL">IL</option>
<option value="DC">DC</option>
</select> <br>
Zip: <input name="zip" id="zip" autocomplete="postal-code"> <br>
Company: <input name="company" id="company" autocomplete="organization"> <br>
Email: <input name="email" id="email" autocomplete="email"> <br>
Phone: <input name="phone" id="phone" autocomplete=tel> <br>
<input type="reset" value="Reset">
<input type="submit" value="Submit" id="profile_submit">
</div>
</body>
<script>
function hasFilled() {
var firstname = document.getElementById('firstname');
if (firstname) {
window.domAutomationController.send(firstname.value != 'M');
}
}
</script>
</html>