blob: 136443611b44722d056b250c233f85dd4caf28ef [file] [log] [blame]
<!DOCTYPE html>
<html>
<script>
function loaded() {
if (window.testRunner)
testRunner.dumpAsText();
area1.setRangeText("foo");
area1.name = "foo";
area2.autofocus = true;
form.insertBefore(area2, form.firstChild);
form.submit();
document.write("<code>PASS</code>");
}
function changed() {
for (let i = 0; i < 100; i++)
form.appendChild(document.createElement("input"));
}
</script>
<body onload=loaded()>
<form id="form" onchange=changed()>
<textarea id="area1">a</textarea>
<object></object>
<textarea id="area2">b</textarea>
</form>
<p>To manually test, load this page. The document should show <code>PASS</code> after loading.</p>
</body>
</html>