blob: 70856da00b18bc2dc406537bf9ef9de1a426ab59 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<form><input type="text" name="foo"><input type="text" name="bar"><input type="text" name="bar"></form>
<script src="../../resources/js-test-pre.js"></script>
<script>
var form = document.querySelector('form');
shouldBe("form['foo']", "form.childNodes[0]");
shouldBe("form['bar'][0]", "form.childNodes[1]");
shouldBe("form['bar'][1]", "form.childNodes[2]");
shouldBe("form.childNodes[0].name = 'bar'; form.childNodes[1].name = form.childNodes[2].name = 'foo'; form['foo'].length", "2");
var successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>