Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <meta charset="UTF-8"> |
michael@0 | 4 | <title>Test for Bug 823283</title> |
michael@0 | 5 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 7 | </head> |
michael@0 | 8 | <body> |
michael@0 | 9 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=823283">Mozilla Bug 823283</a> |
michael@0 | 10 | <p id="display"></p> |
michael@0 | 11 | <div id="content" style="display: none"> |
michael@0 | 12 | <form id="f" onreset="window.valueOfAll = all; SimpleTest.executeSoon(finishTest); return false;"> |
michael@0 | 13 | </form> |
michael@0 | 14 | </div> |
michael@0 | 15 | <pre id="test"> |
michael@0 | 16 | <script> |
michael@0 | 17 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 18 | |
michael@0 | 19 | var all = 17; |
michael@0 | 20 | var valueOfAll = "initial value"; |
michael@0 | 21 | |
michael@0 | 22 | function finishTest() |
michael@0 | 23 | { |
michael@0 | 24 | is(valueOfAll, document.all, |
michael@0 | 25 | "wrong value for |all| in event handler attribute; note that the wrong " + |
michael@0 | 26 | "value may be |document.forms.f.all| in browsers with an 'all' property " + |
michael@0 | 27 | "on elements"); |
michael@0 | 28 | SimpleTest.finish(); |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | window.addEventListener("load", function() { document.getElementById("f").reset(); }, false); |
michael@0 | 32 | </script> |
michael@0 | 33 | </pre> |
michael@0 | 34 | </body> |
michael@0 | 35 | </html> |