Bug Tracker

Ticket #1414: 1414.html

File 1414.html, 833 bytes (added by nathanhammond, 12 years ago)

Test Case

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3<head>
4<title>1414 Test Case</title>
5<script type="text/javascript" src="jquery.js"></script>
6<script type="text/javascript">
7window.onload = function() {
8        if (window.location.search) {
9                alert('Submission worked.');
10        }
11}
12
13function trysubmitting() {
14        $('<input type="submit" style="display: none;"/>').appendTo('form').trigger('click');
15}
16</script>
17
18</head>
19
20<body>
21<form action="?submitted" method="post">
22        <input name="submit" id="submit" type="text" />
23        <a href="#" onclick="this.parentNode.submit(); return false;">Normal Approach Fails</a>
24</form>
25<div>
26        <a href="#" onclick="trysubmitting(); return false;">Other Approach</a>
27</div>
28</body>
29
30</html>