/[suikacvs]/www/test/dom/embedding-element/content-window/iframe-cwd-1.html
Suika

Contents of /www/test/dom/embedding-element/content-window/iframe-cwd-1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Thu May 10 12:19:17 2007 UTC (18 years, 2 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests

1 wakaba 1.1 <!DOCTYPE html>
2     <html>
3     <head>
4     <title>&lt;iframe>.contentWindow.document === &lt;iframe.contentDocument</title>
5     <script type="text/javascript" src="../../../support/result0.js"></script>
6     </head>
7     <body onload="
8     var result = document.getElementById ('result');
9     result.innerHTML = 'FAIL';
10     var iframe = document.getElementsByTagName ('iframe')[0];
11     var cw = iframe.contentWindow;
12     var cd = iframe.contentDocument;
13     if (cd === cw.document) {
14     result.innerHTML = 'PASS';
15     }
16     ">
17     <p id="result">FAIL (noscript)</p>
18     <p><iframe src="iframe-content.html">noiframe</iframe></p>
19     </body>
20     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24