tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_named_frames.html (1226B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=823227
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 823227</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 823227 */
     14 
     15  SimpleTest.waitForExplicitFinish();
     16  function doTest() {
     17    is(frames[0].foo, frames[0][0],
     18       "Should be able to look up frames by name in SVG documents");
     19    is(frames[1].foo, frames[1][0],
     20       "Should be able to look up frames by name in XML documents");
     21    SimpleTest.finish();
     22  }
     23 
     24  addLoadEvent(doTest);
     25 
     26  </script>
     27 </head>
     28 <body>
     29 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=823227">Mozilla Bug 823227</a>
     30 <p id="display"></p>
     31 <div id="content" style="display: none">
     32 <iframe src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><foreignObject><iframe name='foo' id='foo' xmlns='http://www.w3.org/1999/xhtml'/></foreignObject></svg>"></iframe>
     33 <iframe src="data:text/xml,<root><iframe name='foo' id='foo' xmlns='http://www.w3.org/1999/xhtml'/></root>"></iframe>
     34 </div>
     35 <pre id="test">
     36 </pre>
     37 </body>
     38 </html>