/[suikacvs]/www/test/dom/element/inner-html/security/iframe-root-about-2.html
Suika

Contents of /www/test/dom/element/inner-html/security/iframe-root-about-2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sat May 12 03:46:26 2007 UTC (19 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>Access to cssRules in &lt;iframe></title>
5     <style type="text/css">
6     iframe {
7     width: 0; height: 0; border-style: none;
8     }
9     </style>
10     </head>
11     <body onload="
12     var r = document.getElementById ('result');
13     r.innerHTML = 'FAIL';
14     var iframe = document.getElementsByTagName ('iframe')[0];
15     var idoc = iframe.contentDocument;
16     var iroot = idoc.documentElement;
17     iroot.innerHTML = '<head><title>XXXX</title></head><body>YYYY</body>';
18     var ibody = idoc.getElementsByTagName ('body')[0];
19     if (ibody && ibody.textContent == 'YYYY') {
20     r.innerHTML = 'PASS';
21     }
22     ">
23     <p id="result">FAIL (noscript)</p>
24     <p><iframe src="about:<html><head><title></title></head><body></body></html>"></iframe></p>
25     </body>
26     </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24