content/html/document/test/test_bug340017.xhtml

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:25841672f2a0
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <!--
3 https://bugzilla.mozilla.org/show_bug.cgi?id=340017
4 -->
5 <head>
6 <title>Test for Bug 340017</title>
7 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
9 </head>
10 <body>
11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=340017">Mozilla Bug 340017</a>
12 <p id="display"></p>
13 <div id="content" style="display: none">
14 <form id="frmfoo" name="foo" action="" />
15 </div>
16 <pre id="test">
17 <script type="application/javascript">
18 <![CDATA[
19
20 /** Test for Bug 340017 **/
21 is(document.foo, document.getElementById("frmfoo"),
22 "The form with name 'foo' should be a document accessible property");
23 ]]>
24 </script>
25 </pre>
26 </body>
27 </html>

mercurial