Implement extremely basic form submission (fixes #3554)

This commit is contained in:
Manish Goregaokar 2014-10-11 02:57:02 +05:30
parent cc6e81103f
commit b28a4c8858
5 changed files with 300 additions and 13 deletions

View file

@ -0,0 +1,16 @@
<html>
<head></head>
<body>
<!-- Run with nc -l 8000 -->
<form action="http://localhost:8000" method=get id="foo">
<input name=bar type=checkbox checked>
<input name=baz value="baz1" type=radio checked>
<input name=baz value="baz2" type=radio>
<input type=text name=bye value="hi!">
</form>
<script>
// setTimeout because https://github.com/servo/servo/issues/3628
setTimeout(function(){document.getElementById("foo").submit()},5000)
</script>
</body>
</html>