Sha256: 222a1b25644c36cbc4323a422e9cde9d42f856676a4124338c05723d87c4e58d

Contents?: true

Size: 1.76 KB

Versions: 55

Compression:

Stored size: 1.76 KB

Contents

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
 * This file is a component of env.js,
 *     http://github.com/gleneivey/env-js/commits/master/README
 * a Pure JavaScript Browser Environment
 * Copyright 2009 John Resig, licensed under the MIT License
 *     http://www.opensource.org/licenses/mit-license.php
  -->

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      lang="en" dir="ltr" id="html">
  <head>
    <title>Content document 'iframe1a.html' for env.js unit test suite</title>
  </head>
  <body onload="checkEventsWithinIframe();">
    <quote id="anotherElementWithText">
      This is the text content of a block-quote element.
    </quote>

    <!-- elements and scripting here match test cases in ../unit/window.js -->
    <script>//ensure that we can execute JS inline while loading
      document.write(
        '\x3cp id="js_generated_p"\x3eDynamically-generated\x3c/p\x3e');
    </script>

    <script>//verify that our "document" object actually points to this page
      document.write('\x3cp id="internalDocRefResult"\x3e');
      if (document.getElementById('anElementWithText'))
        document.write("First paragraph element exists-found.");
      else
        document.write("Eeek!  Didn't find paragraph id=anElementWithText.");
      document.write('\x3c/p\x3e');
    </script>

    <script>// append 'p id=appended "An appended paragraph"' to doc....
      function checkEventsWithinIframe(){
        var t = document.createTextNode("An appended paragraph");
        var p = document.createElement("p");
        p.setAttribute("id", "appended");
        p.appendChild(t);
        document.getElementsByTagName('body')[0].appendChild(p);
      }
    </script>
  </body>
</html>

Version data entries

55 entries across 31 versions & 4 rubygems

Version Path
envjs19-0.3.8.20101029121421 test/fixtures/html/iframe1a.html
envjs19-0.3.8.20101029121421 test/html/iframe1a.html
envjs-0.3.8 test/fixtures/html/iframe1a.html
envjs-0.3.8 test/html/iframe1a.html
envjs-0.3.7 test/fixtures/html/iframe1a.html
envjs-0.3.7 test/html/iframe1a.html
envjs-0.3.6 test/fixtures/html/iframe1a.html
envjs-0.3.6 test/html/iframe1a.html
envjs-0.3.5 test/html/iframe1a.html
envjs-0.3.5 test/fixtures/html/iframe1a.html
envjs-0.3.4 test/fixtures/html/iframe1a.html
envjs-0.3.4 test/html/iframe1a.html
envjs-0.3.3 test/html/iframe1a.html
envjs-0.3.3 test/fixtures/html/iframe1a.html
envjs-0.3.2 test/html/iframe1a.html
envjs-0.3.2 test/fixtures/html/iframe1a.html
envjs-0.3.1 test/fixtures/html/iframe1a.html
envjs-0.3.1 test/html/iframe1a.html
envjs-0.3.0 test/fixtures/html/iframe1a.html
envjs-0.3.0 test/html/iframe1a.html